USBD_GetPdoRegistryParameter函数 (usbdlib.h)

USBD_GetPdoRegistryParameter 例程从 USB 设备硬件注册表中的指定键中检索值。

语法

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

参数

[in] PhysicalDeviceObject

指定 USB 设备的设备对象。

[in, out] Parameter

指向接收注册表值的调用方分配的缓冲区的指针。

[in] ParameterLength

参数指向的缓冲区的大小(以字节为单位)。

[in] KeyName

指向包含注册表项名称的字符串的指针。

[in] KeyNameLength

KeyName指向的缓冲区的大小(以字节为单位)。

返回值

作成功或作失败时,USBD_GetPdoRegistryParameter 返回STATUS_SUCCESS。

要求

要求 价值
目标平台 普遍
标头 usbdlib.h
Usbd.lib
IRQL PASSIVE_LEVEL

另请参阅

USB 设备驱动程序编程参考