MmGetSystemRoutineAddress function

The MmGetSystemRoutineAddress routine returns a pointer to a function specified by SystemRoutineName.

Syntax

PVOID MmGetSystemRoutineAddress(
  PUNICODE_STRING SystemRoutineName
);

Parameters

SystemRoutineName

Specifies the name of the 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.

Remarks

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.

Requirements

   
Minimum supported client Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL
DDI compliance rules PowerIrpDDis, HwStorPortProhibitedDDIs

See Also

IoIsWdmVersionAvailable