im trying to make a program witch will get command line of proces by a Process id. Im using eclipse c++ and mingw compiler
So i found a 1 tutorial how to do that, and it needs ntstatus so like in tutorial i included #include <ntstatus.h>
And i added first part of code what is:
typedef NTSTATUS (NTAPI *_NtQueryInformationProcess)(
HANDLE ProcessHandle,
DWORD ProcessInformationClass,
PVOID ProcessInformation,
DWORD ProcessInformationLength,
PDWORD ReturnLength
);
And im gettig this 3 errors:
expected primary-expression before '__attribute__
Type 'NTSTATUS' could not be resolved
typedef 'NTSTATUS' is initialized (use decltype instead)
On this line: typedef NTSTATUS (NTAPI *_NtQueryInformationProcess)(
I googled about this problem, and i colud not find it...
NTSTATUS is defined in
as
and its values are defined in