5.3. Developing Your Driver on Windows CE Platforms

To use WinDriver to handle a Plug-and-Play device, you must first register the device with the WinDriver kernel module (windrvr1230.dll).

To register the device with WinDriver, modify the registry to identify the device by its class (<CLASS>), subclass (<SUBCLASS>), vendor ID (<VENDOR_ID>), and device ID (<DEVICE_ID>) — as hexadecimal values — and link the device to windrvr1230.dll. The registry can be modified by adding the relevant information to your project.reg file, as demonstrated below:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Template\WDCard]
  "Prefix"="WDR"
  "Dll"="windrvr1230.dll"
  "Class"=dword:<CLASS>
  "SubClass"=dword:<SUBCLASS>
  "Order"=dword:ff
  "VendorID"=dword:<VENDOR_ID>
  "DeviceID"=dword:<DEVICE_ID>
  "IsrDll"="giisr.dll"
  "IsrHandler"="ISRHandler"
  "WdIntEnh"=dword:0

[Note]
For information about the WdIntEnh registry setting and interrupt latency, see Section 9.2.9.1.

[Note]
For more information about the relevant registry settings, refer to PCI Bus Driver Registry Settings in the MSDN Library.