次の方法で共有


HID Driver Registry Settings (Compact 2013)

3/26/2014

The following registry key example shows the settings for the sample HID driver.

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\3\Generic_Sample_Hid_Class_Driver]
   "DLL"="USBHID.dll"

This example shows that the driver in Usbhid.dll is called Generic_Sample_Hid_Class_Driver and is loaded for any interface with an InterfaceClassCode of 3.

According to the precedence rules for loading USB device drivers, if the settings for the mouse and the HID drivers are included in the registry, the HID driver is loaded first because it has the more general Group3_ID subkey.

Human Interface Device (HID) Driver Registry Settings

The following registry key examples show HID registry keys.

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\3\Hid_Class]
   "DLL"="USBHID.DLL"

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Hid\Instance]
   "DLL"="USBHID.DLL"

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Hid\Hid_Class]
   "DLL"="USBHID.DLL"
   "Prefix"="HID"
   "QueuedTransferCount"=dword:2
; @CESYSGEN ENDIF

; @CESYSGEN IF CE_MODULES_USBPRN && CE_MODULES_USBD
; USB - Printer Class Driver
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\7\Printer_Class]
   "DLL"="USBPRN.DLL"
   "Prefix"="LPT"
   "IClass"="{4FE1CEF1-E765-4a1e-B503-5B8C674D7C68}"

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Printer_Class]
   "DLL"="USBPRN.DLL"
   "Prefix"="LPT"
   "IClass"="{4FE1CEF1-E765-4a1e-B503-5B8C674D7C68}"
; @CESYSGEN ENDIF

; @CESYSGEN IF CE_MODULES_USBMSC && CE_MODULES_USBD
; USB - Mass Storage Class Driver
[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\Default\Default\8\Mass_Storage_Class]
   "DLL"="USBMSC.DLL"
   "Prefix"="DSK"

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class]
   "DLL"="USBMSC.DLL"
   "Prefix"="DSK"

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class\2]
   "DLL"="USBDISK6.DLL"
   "Prefix"="DSK"
   "Folder"="USB Disk"
   "IOCTL"=dword:4
   "IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\Mass_Storage_Class\6]
   "DLL"="USBDISK6.DLL"
   "Prefix"="DSK"
   "Folder"="USB Disk"
   "IOCTL"=dword:4
   "IClass"="{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"

See Also

Reference

HID Driver and HID Parser Reference