6.3  Developing Your Driver on Windows CE Platforms

In order to register your USB device to work with WinDriver, you can perform one of two of the following:
  • Call WDU_Init() [B.4.1] before the device is plugged into the CE system. OR
  • You can add the following entry to the registry (can be added to your platform.reg file):
    [HKEY_LOCAL_MACHINE\DRIVERS\USB\LoadClients\<ID>\Default\Default\WDR]:
          "DLL"="windrvr6.dll"
    <ID> consists of your vendor ID and product ID, separated by an underscore character: <MY VENDOR ID>_<MY PRODUCT ID>. Insert your device specific information to this key. The key registers your device with Windows CE Plug-and-Play (USB driver) and enables identification of the device during boot. You can refer to the registry after calling WDU_Init() and then this key will exist. From that moment the device will be recognized by CE. If your device has a persistent registry, this addition will remain until you remove it. For more information, refer to the Microsoft Development Network (MSDN) Library, under the USB Driver Registry Settings section.