// usbdlib.h
NTSTATUS USBD_GetPdoRegistryParameter(
[in] PDEVICE_OBJECT PhysicalDeviceObject,
[in, out] PVOID Parameter,
[in] ULONG ParameterLength,
[in] PWSTR KeyName,
[in] ULONG KeyNameLength
);
View the official Windows Driver Kit DDI referenceNo description available.
The USBD_GetPdoRegistryParameter routine retrieves the value from the specified key in the USB device's hardware registry.
PhysicalDeviceObject [in]Specifies the device object for the USB device.
ParameterLength [in]Size, in bytes, of the buffer that is pointed to by Parameter.
KeyName [in]Pointer to a string containing the name of the registry key.
KeyNameLength [in]Size, in bytes, of the buffer that is pointed to by KeyName.
Parameter [in, out]Pointer to a caller-allocated buffer that receives the registry value.
The USBD_GetPdoRegistryParameter returns STATUS_SUCCESS when the operation succeeds or an appropriate error status when the operation fails.
USB device driver programming reference