I have a strange problem that i didn’t encounter before i must mention that my main programming language is delphi not c++ and i might do a stupid mistake and don’t realise it.
I have the following code :
ULONG myret;
PROCESS_BASIC_INFORMATION PRC;
...
NtQueryInformationProcess(hProcess,ProcessBasicInformation,(PVOID)(&PRC),sizeof(PROCESS_BASIC_INFORMATION),(PULONG)(&myret));
...
I get the following error message :
GetCommandArgs.obj : error LNK2019: unresolved external symbol
_NtQueryInformationProcess@20 referenced in function _wmain
What is the problem ? Thanks very much.
This is by design. Microsoft wasn’t very happy about having to document the function, forced to by the Department of Justice settlement. It is clearly spelled out in the MSDN article for it:
The last line tells you what you have to do. The first line tells you why you shouldn’t.