USBD_GetPdoRegistryParameter function (usbdlib.h)

The USBD_GetPdoRegistryParameter routine retrieves the value from the specified key in the USB device's hardware registry.

Syntax

NTSTATUS USBD_GetPdoRegistryParameter(
  [in]      PDEVICE_OBJECT PhysicalDeviceObject,
  [in, out] PVOID          Parameter,
  [in]      ULONG          ParameterLength,
  [in]      PWSTR          KeyName,
  [in]      ULONG          KeyNameLength
);

Parameters

[in] PhysicalDeviceObject

Specifies the device object for the USB device.

[in, out] Parameter

Pointer to a caller-allocated buffer that receives the registry value.

[in] ParameterLength

Size, in bytes, of the buffer that is pointed to by Parameter.

[in] KeyName

Pointer to a string containing the name of the registry key.

[in] KeyNameLength

Size, in bytes, of the buffer that is pointed to by KeyName.

Return value

The USBD_GetPdoRegistryParameter returns STATUS_SUCCESS when the operation succeeds or an appropriate error status when the operation fails.

Requirements

Requirement Value
Target Platform Universal
Header usbdlib.h
Library Usbd.lib
IRQL PASSIVE_LEVEL

See also

USB device driver programming reference