#include "c.h"
#include "port/win32ntdll.h"
Go to the source code of this file.
◆ NtDllRoutine
◆ 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().
◆ initialized
◆ pg_NtFlushBuffersFileEx
◆ pg_RtlGetLastNtStatus
◆ pg_RtlNtStatusToDosError
◆ routines
Initial value:= {
}
NtFlushBuffersFileEx_t pg_NtFlushBuffersFileEx
RtlGetLastNtStatus_t pg_RtlGetLastNtStatus
RtlNtStatusToDosError_t pg_RtlNtStatusToDosError
Definition at line 30 of file win32ntdll.c.
Referenced by initialize_ntdll().