1/*-------------------------------------------------------------------------
4 * Dynamically loaded Windows NT functions.
6 * Portions Copyright (c) 2021-2025, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/port/win32ntdll.c
13 *-------------------------------------------------------------------------
46 if (!(module = LoadLibraryEx(
"ntdll.dll", NULL, 0)))
void(* pg_funcptr_t)(void)
void _dosmaperr(unsigned long)
NtFlushBuffersFileEx_t pg_NtFlushBuffersFileEx
struct NtDllRoutine NtDllRoutine
int initialize_ntdll(void)
RtlGetLastNtStatus_t pg_RtlGetLastNtStatus
static const NtDllRoutine routines[]
RtlNtStatusToDosError_t pg_RtlNtStatusToDosError
NTSTATUS(__stdcall * RtlGetLastNtStatus_t)(void)
NTSTATUS(__stdcall * NtFlushBuffersFileEx_t)(HANDLE, ULONG, PVOID, ULONG, PIO_STATUS_BLOCK)
ULONG(__stdcall * RtlNtStatusToDosError_t)(NTSTATUS)