From: " ctacke/>" on 28 Aug 2006 10:01 pkfuncs is in the Platform Builder folders. If you do much P/Invoke work, it's worth getting the evaluation version of PB so you have these files. Still, in this case you probably don't need it. I just GREPed the WM 5.0 SDK folder's Includes subfolder for CTL_CODE an it finds this at lines 26 and 27 of winioctl.h #define CTL_CODE( DeviceType, Function, Method, Access ) ( \ ((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method) \ Again, I'll leave it to you to find the remaining items. -- Chris Tacke OpenNETCF Consulting Managed Code in the Embedded World www.opennetcf.com -- "Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in message news:A5D4E8D0-3BC7-43E0-823F-0BC00FA8DD4A(a)microsoft.com... > Hallo, i have a problem....i don't find pkfuncs.h, why? > > I have installed WM5 Pocket PC and Smartphone SDK...but i don't find > pkfuncs.h. > > > "<ctacke/>" wrote: > >> It's not in any library, you have to find it in the CE headers. >> >> from pkfuncs.h, line 404: >> >> #define IOCTL_HAL_QUERY_FORMAT_PARTITION CTL_CODE(FILE_DEVICE_HAL, >> 70, METHOD_BUFFERED, FILE_ANY_ACCESS) >> >> I'll let you find the others. >> >> >> -- >> Chris Tacke >> OpenNETCF Consulting >> Managed Code in the Embedded World >> www.opennetcf.com >> -- >> >> >> >> >> "Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in message >> news:80FD08B0-F4C9-4200-80AE-D318FF7D727A(a)microsoft.com... >> >I have see this sample >> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcehardware5/html/wce50lrfioctl_hal_query_format_partition.asp >> > >> > but i have error : "IOCTL_HAL_QUERY_FORMAT_PARTITION"": undeclared >> > identifier >> > >> > what library i need to include? >> > >> > >> > "<ctacke/>" wrote: >> > >> >> The OEM would have to put in their OEMIoControl routine support for >> >> the >> >> IOCTL_HAL_QUERY_FORMAT_PARTITION constant. You can't do it afterward, >> >> so >> >> if >> >> it's not there, you have no recourse. If it is there, you can call it >> >> through a P/Invoke to KernelIoControl. The registry has nothing to do >> >> with >> >> it. >> >> >> >> >> >> -- >> >> Chris Tacke >> >> OpenNETCF Consulting >> >> Managed Code in the Embedded World >> >> www.opennetcf.com >> >> -- >> >> >> >> >> >> >> >> "Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in >> >> message >> >> news:FD74F920-3510-41CB-B756-0096E948B86A(a)microsoft.com... >> >> > How the OEM implement IOCTL_HAL_QUERY_FORMAT_PARTITION? I should >> >> > change >> >> > a >> >> > value in a registry and after a reboot i can call >> >> > IOCTL_HAL_QUERY_FORMAT_PARTITION from my application? >> >> > >> >> > Thanks >> >> > >> >> > >> >> > "<ctacke/>" wrote: >> >> > >> >> >> You don't implement IOCTL_HAL_QUERY_FORMAT_PARTITION, the OEM >> >> >> does. >> >> >> If >> >> >> it >> >> >> is implemented, then you can call it from an papplication (provided >> >> >> you >> >> >> have >> >> >> the privilege to do so. A huge warning on this though - if the OS >> >> >> itself >> >> >> is >> >> >> on a partition visible to the FSD, then you could easily format the >> >> >> wrong >> >> >> partition a completely destroy the device. I highly recommend a >> >> >> full >> >> >> ROM >> >> >> image backup before even thinking about trying this. >> >> >> >> >> >> >> >> >> -- >> >> >> Chris Tacke >> >> >> OpenNETCF Consulting >> >> >> Managed Code in the Embedded World >> >> >> www.opennetcf.com >> >> >> -- >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> "Azzi Stefano" <AzziStefano(a)discussions.microsoft.com> wrote in >> >> >> message >> >> >> news:70BF677E-5691-475B-916A-8371FEB900C3(a)microsoft.com... >> >> >> > How i can implement a Clean Boot on WM5? >> >> >> > >> >> >> > I have read info on this link >> >> >> > http://blogs.msdn.com/ce_base/archive/2006/02/09/How_OEMs_implement_Clean_Boot_on_WM5.aspx >> >> >> > but i don't understand. >> >> >> > >> >> >> > How i can implement IOCTL_HAL_QUERY_FORMAT_PARTITION? >> >> >> > >> >> >> > Thanks in advance. >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> |