Hello!
I'm writing windows driver and want to use undocumented function from ntoskrnl.lib (PsSuspendProcess). (I know that it's not the best thing to do, but nevertheless I want to try)
So I declared it by myself:
I'm writing windows driver and want to use undocumented function from ntoskrnl.lib (PsSuspendProcess). (I know that it's not the best thing to do, but nevertheless I want to try)
So I declared it by myself:
Code: Select all
Found it in ntoskrnl.lib: dumpbin.exe /EXPORTS .\ntoskrnl.libNTSTATUS
PsSuspendProcess(
IN PEPROCESS Process
);
Code: Select all
Also I added this file into Visual Studio project. Path to the library directory (C:\Program Files (x86)\Windows Kits\10\Lib\10.0.15063.0\km) was already in the project properites. But I got this error while compiling driver:
Dump of file .\ntoskrnl.lib
File Type: LIBRARY
Exports
...
PsSuspendProcess
...
Code: Select all
So, what am I doing wrong?unresolved external symbol "long __cdecl PsSuspendProcess(struct _KPROCESS *)"