win32ntdll.h 886 B

1234567891011121314151617181920212223242526272829303132
  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. #ifndef WIN32NTDLL_H
  14. #define WIN32NTDLL_H
  15. /*
  16. * Because this includes NT headers that normally conflict with Win32 headers,
  17. * any translation unit that includes it should #define UMDF_USING_NTSTATUS
  18. * before including <windows.h>.
  19. */
  20. #include <ntstatus.h>
  21. #include <winternl.h>
  22. typedef NTSTATUS (__stdcall * RtlGetLastNtStatus_t) (void);
  23. extern PGDLLIMPORT RtlGetLastNtStatus_t pg_RtlGetLastNtStatus;
  24. extern int initialize_ntdll(void);
  25. #endif /* WIN32NTDLL_H */