seripigari
seripigari

Reputation: 21

What does VOID NTAPI mean and where can I find references for it?

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

Answers (2)

NT_DEVICE
NT_DEVICE

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

perilbrain
perilbrain

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

Related Questions