StorPortReadRegistryKey 函数 (storport.h)
微型端口使用 StorPortReadRegistryKey 函数读取指定的注册表项。 调用方提供要读取的密钥的绝对路径。
语法
ULONG StorPortReadRegistryKey(
PVOID HwDeviceExtension,
PWSTR AbsolutePath,
PWSTR KeyName,
ULONG ValueType,
PVOID *ValueData,
PULONG ValueDataLength
);
参数
HwDeviceExtension
指向硬件设备扩展的指针。 这特定于微型端口驱动程序实例。
AbsolutePath
要读取的密钥的绝对路径。
KeyName
绝对路径下的键路径。
ValueType
REG_XXXX格式的注册表项值的类型。 目前,仅支持REG_DWORD值类型。
ValueData
指向用于接收注册表项值的数据缓冲区的指针。
ValueDataLength
ValueData的大小(以字节为单位)。
返回值
返回 storport.h 中定义的STOR_STATUS代码。
要求
要求 | 价值 |
---|---|
标头 | storport.h |