StorPortReadRegistryKey 函式 (storport.h)
miniport 會使用 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 |