Kernel Mode Driver Framework
如何在Pascal中取得WDFFunction和WdfDriverGlobals
宣告方式:
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:\dddk\bin\omf2d.exe c:\dddk\inc\dddk.obj /U- /CEWdfFunctions=_WdfFunctions c:\dddk\bin\omf2d.exe c:\dddk\inc\dddk.obj /U- /CEWdfDriverGlobals=_WdfDriverGlobals