37 # define WIN32_LEAN_AND_MEAN
48 handle = LoadLibraryW(name_16);
63 return GetProcAddress(
lib->handle, symname);
73 SetLastError(ERROR_SUCCESS);
77 static char buf[1024];
79 if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
82 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
95 FreeLibrary(
lib->handle);
106 void *handle = dlopen(name, RTLD_LAZY);
113 lib->handle = handle;
120 return dlsym(
lib->handle, symname);
131 dlclose(
lib->handle);
Read Guarded memory(de)allocation.
char * BLI_dynlib_get_error_as_string(DynamicLibrary *lib)
void BLI_dynlib_close(DynamicLibrary *lib)
DynamicLibrary * BLI_dynlib_open(const char *name)
void * BLI_dynlib_find_symbol(DynamicLibrary *lib, const char *symname)
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
#define UTF16_ENCODE(in8str)
#define UTF16_UN_ENCODE(in8str)