Compiling a Miniport Driver for Windows CE

The process of compiling a Miniport driver for Windows CE is slightly different than compiling for Windows NT. On Windows NT, Miniport drivers are compiled as system files (.SYS files). Windows CE does not support .sys files, so you must compile your driver as a DLL instead.

As a consequence of being compiled as a DLL, your driver must export a DriverEntry function in its .DEF file. Typically, this function performs any general initialization, and calls other functions in the DLL to perform platform-specific initialization. The DriverEntry function must have the following prototype:

NTSTATUS DriverEntry(IN PDRIVER_OBJECT pDriverObject_,
IN PUNICODE_STRING
pRegistryPath_);

For sample DriverEntry implementations, see the source code for the sample Miniport drivers.