Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
win32ntdll.h35 linesDownload Raw Back to port
1/*-------------------------------------------------------------------------2 *3 * win32ntdll.h4 *	  Dynamically loaded Windows NT functions.5 *6 * Portions Copyright (c) 2021-2023, PostgreSQL Global Development Group7 * Portions Copyright (c) 1994, Regents of the University of California8 *9 * src/include/port/win32ntdll.h10 *11 *-------------------------------------------------------------------------12 */13 14#ifndef WIN32NTDLL_H15#define WIN32NTDLL_H16 17#include <ntstatus.h>18#include <winternl.h>19 20#ifndef FLUSH_FLAGS_FILE_DATA_SYNC_ONLY21#define FLUSH_FLAGS_FILE_DATA_SYNC_ONLY 0x422#endif23 24typedef NTSTATUS (__stdcall * RtlGetLastNtStatus_t) (void);25typedef ULONG (__stdcall * RtlNtStatusToDosError_t) (NTSTATUS);26typedef NTSTATUS (__stdcall * NtFlushBuffersFileEx_t) (HANDLE, ULONG, PVOID, ULONG, PIO_STATUS_BLOCK);27 28extern PGDLLIMPORT RtlGetLastNtStatus_t pg_RtlGetLastNtStatus;29extern PGDLLIMPORT RtlNtStatusToDosError_t pg_RtlNtStatusToDosError;30extern PGDLLIMPORT NtFlushBuffersFileEx_t pg_NtFlushBuffersFileEx;31 32extern int	initialize_ntdll(void);33 34#endif							/* WIN32NTDLL_H */35 
codekingpro/portable-devtools · Team Ai