Sunteți pe pagina 1din 3

7/23/2018 USB Device Registry Entries | Microsoft Docs

USB Device Registry Entries


 04/20/2017  2 minutes to read Contributors

In this article
Find device information after it enumerates on Windows
Registry settings for configuring USB driver stack behavior
Related topics

This topic describes the device-specific registry entries.

Find device information after it enumerates on Windows

View the device interface GUID, Hardware Id, and device class information about your device

1. Find this registry key and note the DeviceInstance value:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\

2. Find the device instance registry key and get the device interface GUID:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\<hardware id>\<instance
id>\Device Parameters

3. Under the device instance key, note the device class, subclass, and protocol codes:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB

https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-device-specific-registry-settings 1/3
7/23/2018 USB Device Registry Entries | Microsoft Docs

Registry settings for configuring USB driver stack


behavior
The registry entries described in this topic are found under this key:

= Copy

HKEY_LOCAL_MACHINE
SYSTEM
CurrentControlSet
Control
usbflags
<VVVVPPPPRRRR>
<Device-specific registry entry>

In the vvvvpppprrrrr key,

vvvv is a 4-digit hexadecimal number that identifies the vendor


pppp is a 4-digit hexadecimal number that identifies the product
rrrr is a 4-digit hexadecimal number that contains the revision number of the device.

The vendor ID, product ID, and revision number values are obtained from the USB device descriptor.
The following table describes the possible registry entries for the vvvvpppprrrrr key. The USB driver
stack considers these entries as read-only values.

https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-device-specific-registry-settings 2/3
7/23/2018 USB Device Registry Entries | Microsoft Docs

Registry entry Description Possible values

osvc Indicates whether the operating


system queried the device for 0x0000: The device did not
REG_BINARY Microsoft-Defined USB provide a valid response to
Descriptors. If the previously- the Microsoft OS string
Supported on Windows XP and descriptor request.
attempted OS descriptor query
later versions. 0x01xx: The device
was successful, the value contains
the vendor code from the OS provided a valid response
string descriptor. to the Microsoft OS string
descriptor request, where
xx is the bVendorCode
contained in the response.

IgnoreHWSerNum Indicates whether the USB driver


stack must ignore the serial 0x0000: The setting is
REG_BINARY number of the device. disabled.
0x0001: Forces the USB
Supported on Windows Vista and driver stack to ignore the
later versions. serial number of the device.
Therefore, the device
instance is tied to the port
to which the device is
attached.

ResetOnResume Indicates whether the USB driver


stack must reset the device when 0x0000: The setting is
REG_BINARY the port resumes from a sleep disabled.
cycle. 0x0001: Forces the USB
Supported on Windows Vista and driver stack to reset a
later versions. device on port resume.

Related topics
Microsoft-provided USB drivers

https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-device-specific-registry-settings 3/3

S-ar putea să vă placă și