函数描述:
MmGetSystemRoutineAddress
The MmGetSystemRoutineAddress routine returns a pointer to a function specified by SystemRoutineName.
NTKERNELAPI
PVOID
MmGetSystemRoutineAddress(
IN PUNICODE_STRING SystemRoutineName
);
Parameters
SystemRoutineName
Specifies name of system routine to resolve.
Return Value
If the function name can be resolved, the routine returns a pointer to the function. Otherwise, the routine returns NULL.
Headers
Declared in wdm.h and ntddk.h.. Include wdm.h and ntddk.h. .
Comments
MmGetSystemRoutineAddress is available on Windows® 2000 and later.
Drivers can use this routine to determine if a routine is available on a specific version of Windows. It can only be used for routines exported by the kernel or HAL, not for any driver-defined routine.
This routine can only be called at IRQL = PASSIVE_LEVEL.