PostgreSQL Source Code  git master
win32ntdll.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * win32ntdll.h
4  * Dynamically loaded Windows NT functions.
5  *
6  * Portions Copyright (c) 2021-2022, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/port/win32ntdll.h
10  *
11  *-------------------------------------------------------------------------
12  */
13 
14 #ifndef WIN32NTDLL_H
15 #define WIN32NTDLL_H
16 
17 /*
18  * Because this includes NT headers that normally conflict with Win32 headers,
19  * any translation unit that includes it should #define UMDF_USING_NTSTATUS
20  * before including <windows.h>.
21  */
22 
23 #include <ntstatus.h>
24 #include <winternl.h>
25 
26 typedef NTSTATUS (__stdcall * RtlGetLastNtStatus_t) (void);
27 
29 
30 extern int initialize_ntdll(void);
31 
32 #endif /* WIN32NTDLL_H */
#define PGDLLIMPORT
Definition: c.h:1331
NTSTATUS(__stdcall * RtlGetLastNtStatus_t)(void)
Definition: win32ntdll.h:26
int initialize_ntdll(void)
Definition: win32ntdll.c:37
PGDLLIMPORT RtlGetLastNtStatus_t pg_RtlGetLastNtStatus
Definition: win32ntdll.c:22