IoGetDriverObjectExtension 函数 (wdm.h)

IoGetDriverObjectExtension 例程检索以前分配的每个驱动程序上下文区域。

语法

__drv_aliasesMem PVOID IoGetDriverObjectExtension(
  [in] PDRIVER_OBJECT DriverObject,
  [in] PVOID          ClientIdentificationAddress
);

参数

[in] DriverObject

指定与上下文区域关联的驱动程序对象。

[in] ClientIdentificationAddress

指定要检索的上下文区域的唯一标识符(在分配时提供)。

返回值

IoGetDriverObjectExtension 返回指向上下文区域的指针(如果有)或 返回 NULL

注解

驱动程序调用 IoGetDriverObjectExtension 以检索指向以前分配的扩展区域的指针。

要求

要求
最低受支持的客户端 从 Windows 2000 开始可用。
目标平台 通用
标头 wdm.h(包括 Wdm.h、Ntddk.h、Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= DISPATCH_LEVEL

另请参阅

IoAllocateDriverObjectExtension