MmGetSystemRoutineAddress routine
MmGetSystemRoutineAddress 返回一个参数SystemRoutineName指定的函数指针。returns a pointer to a function specified by SystemRoutineName.
Syntax
PVOID MmGetSystemRoutineAddress(
_In_ PUNICODE_STRING SystemRoutineName
);
Parameters
SystemRoutineName [in]
指定需要解析的系统例程/函数的名称。
Return value
如果函数名能被解析,例程返回一个该函数的指针,否则返回NULL.
Remarks
驱动程序可以使用这个例程确定一个例程是否在指定版本的Windows中可用。 它仅能用于获取那些被内核或者HAL导出的函数,不能用于获取任何驱动程序定义的例程。
Requirements
Target platform | |
Version | Available starting with Windows 2000. |
Header | Wdm.h (include Wdm.h or Ntddk.h) |
Library | NtosKrnl.lib |
DLL | NtosKrnl.exe |
IRQL | PASSIVE_LEVEL |
DDI compliance rules |