include/ntsecapi.h: Add missing `__stdcall` specifiers.
This commit adds `__stdcall` to the following functions:
RtlGenRandom()
RtlEncryptMemory()
RtlDecryptMemory()
Absence of these specifiers used to cause undefined references to
`SystemFunction036` when compiling the following code for x86:
#include <minwindef.h>
#include <ntsecapi.h>
int main(void)
{
char buffer[100];
RtlGenRandom(buffer, sizeof(buffer));
}
Signed-off-by: Liu Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/include/ntsecapi.h b/mingw-w64-headers/include/ntsecapi.h
index d409c02..99fd3cb 100644
--- a/mingw-w64-headers/include/ntsecapi.h
+++ b/mingw-w64-headers/include/ntsecapi.h
@@ -847,14 +847,14 @@
#define RtlEncryptMemory SystemFunction040
#define RtlDecryptMemory SystemFunction041
- BOOLEAN RtlGenRandom(PVOID RandomBuffer,ULONG RandomBufferLength);
+ BOOLEAN WINAPI RtlGenRandom(PVOID RandomBuffer,ULONG RandomBufferLength);
#define RTL_ENCRYPT_MEMORY_SIZE 8
#define RTL_ENCRYPT_OPTION_CROSS_PROCESS 0x01
#define RTL_ENCRYPT_OPTION_SAME_LOGON 0x02
- NTSTATUS RtlEncryptMemory(PVOID Memory,ULONG MemorySize,ULONG OptionFlags);
- NTSTATUS RtlDecryptMemory(PVOID Memory,ULONG MemorySize,ULONG OptionFlags);
+ NTSTATUS WINAPI RtlEncryptMemory(PVOID Memory,ULONG MemorySize,ULONG OptionFlags);
+ NTSTATUS WINAPI RtlDecryptMemory(PVOID Memory,ULONG MemorySize,ULONG OptionFlags);
#define KERBEROS_VERSION 5
#define KERBEROS_REVISION 6