win32ntdll.h File Reference
#include <ntstatus.h>
#include <winternl.h>
Include dependency graph for win32ntdll.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macro Definition Documentation
◆ FLUSH_FLAGS_FILE_DATA_SYNC_ONLY
#define FLUSH_FLAGS_FILE_DATA_SYNC_ONLY 0x4
Typedef Documentation
◆ NtFlushBuffersFileEx_t
typedef NTSTATUS(__stdcall * NtFlushBuffersFileEx_t) (HANDLE, ULONG, PVOID, ULONG, PIO_STATUS_BLOCK)
◆ RtlGetLastNtStatus_t
typedef NTSTATUS(__stdcall * RtlGetLastNtStatus_t) (void)
◆ RtlNtStatusToDosError_t
typedef ULONG(__stdcall * RtlNtStatusToDosError_t) (NTSTATUS)
Function Documentation
◆ initialize_ntdll()
int initialize_ntdll
(
void
)
Definition at line 39 of file win32ntdll.c.
40{
41 HMODULE module;
42
44 return 0;
45
46 if (!(module = LoadLibraryEx("ntdll.dll", NULL, 0)))
47 {
49 return -1;
50 }
51
53 {
55
57 if (!address)
58 {
60 FreeLibrary(module);
61
62 return -1;
63 }
64
66 }
67
69
70 return 0;
71}
void(* pg_funcptr_t)(void)
void _dosmaperr(unsigned long)
static const NtDllRoutine routines[]
References _dosmaperr(), i, initialized, lengthof, name, and routines.
Referenced by fdatasync().
Variable Documentation
◆ pg_NtFlushBuffersFileEx
◆ pg_RtlGetLastNtStatus
◆ pg_RtlNtStatusToDosError