23 DWORD
err = GetLastError();
25 if (FormatMessage(FORMAT_MESSAGE_IGNORE_INSERTS |
26 FORMAT_MESSAGE_FROM_SYSTEM,
29 MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
35 "unknown error %lu",
err);
51 if (!FreeLibrary((HMODULE) handle))
65 ptr = GetProcAddress((HMODULE) handle,
symbol);
82 prevmode = SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
83 h = LoadLibrary(file);
84 SetErrorMode(prevmode);
void err(int eval, const char *fmt,...)
static PgChecksumMode mode
void * dlsym(void *handle, const char *symbol)
void * dlopen(const char *file, int mode)
static char last_dyn_error[512]
int dlclose(void *handle)
static void set_dl_error(void)