Reputation: 21
I found this code and I don't understand it. I can't find references for NTAPI
. For me, it's defining a function called TestForWr
but NTAPI
is confusing.
VOID NTAPI TestForWr(PVOID Ad, ULONG Le, ULONG Al);
Upvotes: 2
Views: 5162
Reputation: 1
The prefix NTAPI is a Function calling convention that is used in native mode Programming.
Also, it is not part of a windows subsystem like win32.
For example, it will look something like that: NTSTATUS NTAPI NtForceReset(PVOID Response);
.
Upvotes: 0
Reputation: 8207
From WinNT.h
#define NTAPI __stdcall
The
__stdcall
calling convention is used to call Win32 API functions. The callee cleans the stack, so the compiler makes vararg functions__cdecl
.
Upvotes: 15