宣告方式:
const NtKernel = 'wdfldr'; implementation var WdfFunctions : WDFFUNC; WdfDriverGlobals : PWDF_DRIVER_GLOBALS; procedure krnlWdfFunctions; external NtKernel name 'WdfFunctions'; procedure krnlWdfDriverGlobals; external NtKernel name 'WdfDriverGlobals';
取得方式:
WdfFunctions := Pointer(PPointer(@krnlWdfFunctions)); WdfDriverGlobals := PPointer(@krnlWdfDriverGlobals)^;
轉換方式:
C:\> c:\dddk\bin\omf2d.exe c:\dddk\inc\dddk.obj /U- /CEWdfFunctions=_WdfFunctions C:\> c:\dddk\bin\omf2d.exe c:\dddk\inc\dddk.obj /U- /CEWdfDriverGlobals=_WdfDriverGlobals