USB storage

The USBSTOR driver tracks various information about attached USB storage devices in the key.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\USBSTOR

The USBSTOR key contains one or more device keys.

Device key

The name of the device key is formatted as:

<Device Type>&Ven_<Vendor>&Prod_<Product>&Rev_<Revision Number>

Note that the number of values in the name is variable.

For example: Disk&Ven_&Prod_&Rev_0.00 or Disk&Ven_&Prod_

The device key contains one or more device instance keys.

Device instance key

The name of the device instance key is formatted as:

For example: 1002131402536a&0

Sub keys:

Name Description
Device Parameters
LogConf
Properties

Values:

Name Data type Description
Capabilities REG_DWORD_LITTLE_ENDIAN
Class REG_SZ
ClassGUID REG_SZ
CompatibleIDs REG_MULTI_SZ
ConfigFlags REG_DWORD_LITTLE_ENDIAN
ContainerID REG_SZ
DeviceDesc REG_SZ
Driver REG_SZ
FriendlyName REG_SZ Human readable description of the USB storage device
HardwareID REG_MULTI_SZ
Mfg REG_SZ Manufacturer information
Service REG_SZ

Device Parameters key

Sub keys:

Name Description
MediaChangeNotification
Partmgr

Device Parameters\Partmgr key

Values:

Name Data type Description
Attributes REG_DWORD_LITTLE_ENDIAN
DiskId REG_SZ Contains a GUID

LogConf key

Properties key

Sub keys:

Name Description
%GUID% Property set identifier

Property set key (Properties\%GUID%)

Sub keys:

Name Description
%NUMERIC% Property identifier

Property key (Properties\%GUID%\%NUMERIC%)

Sub keys:

Name Description
%NUMERIC%

Property value key (Properties\%GUID%\%NUMERIC%\%NUMERIC%)

Values:

Name Data type Description
Data REG_BINARY Value data
Type REG_BINARY Value type

Value type:

  • 0x0007 value data contains a 32-bit little-endian integer

  • 0x0010 value data contains a FILETIME

  • 0x0012 value data contains an UTF-16 litte-endian encoded string

Example

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\USBSTOR\Disk&Ven_HP&Prod_v100w&Rev_1024\AA951D0000007252&0\Properties\{540b947e-8b40-45bc-a8a2-6a0b894cbda2}\00000004\00000000

Property set: 540b947e-8b40-45bc-a8a2-6a0b894cbda2 (System.Devices)
Property identifier: 4 (PKEY_Device_BusReportedDeviceDesc)
Type: 0x00000012 (UTF-16 litte-endian encoded string)
Data: "HP v100w USB Device"