I am trying to hook NtCreateUserProcess in the driver using hooklib, but I have encountered the following problem:
3>Building 'HookSysDemo' with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
3>main.cpp
3>HookLib.lib(HookLib.obj) : warning LNK4257: object file was not compiled for kernel mode; the image might not run
3>LINK : error LNK1218: warning treated as error; no output file generated
3>Done building project "HookSysDemo.vcxproj" -- FAILED.
source code: frendguo@74a33f8
I see that the project's readme supports kernel mode. Am I using it incorrectly? Please help me.