IoGetCurrentProcess 函数 (wdm.h)

IoGetCurrentProcess 例程返回指向当前进程的指针。 调用 PsGetCurrentProcess 而不是 IoGetCurrentProcess

语法

PEPROCESS IoGetCurrentProcess();

返回值

IoGetCurrentProcess 返回指向当前进程的指针。

注解

此例程与 PsGetCurrentProcess 相同。

#define PsGetCurrentProcess IoGetCurrentProcess

要求

要求
最低受支持的客户端 在 Windows 2000 和更高版本的 Windows 中可用。
目标平台 通用
标头 wdm.h(包括 Wdm.h、Ntddk.h、Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL 任何级别

另请参阅

PsGetCurrentThread