c++ - How to include DDK headers in visual studio 2010? -
i need use zwloaddriver
function ntddk.h. installed windows software development kit (sdk) windows 8. set includes (#include <ntddk.h>
). , have lots of errors type/sruct redefinition
, ... has body
. think headers sdk mixes ones ddk. how fix ?
the ddk should ever used develop driver. water , fire in user mode, lots of declarations overlap sdk headers.
using ntloaddriver() user mode undocumented, no header available declaration , there no import library available ntdll.dll. native operating system api function, argument uses non-standard format registry key. native os different win32 api. if really, want you'll have write own declaration , use getprocaddress() entrypoint in ntdll.dll
but loading drivers user mode code supported in windows. best use documented , supported way, openscmanager + createservice. sample project available here.
Comments
Post a Comment