10 if( (library) && (library->
data) )
11 res = LoadLibrary( library->
data );
26 library = GetModuleHandle(
NULL );
28 if( (symbol) && (symbol->
data) )
30 proc = (
void*) GetProcAddress( (HINSTANCE)
library, symbol->
data );
31 if( (!proc) && (!strchr( symbol->
data,
'@' )) ) {
32 procname[1023] =
'\0';
33 for( i = 0; i < 256; i += 4 ) {
34 snprintf( procname, 1023,
"%s@%d", symbol->
data, i );
35 proc = (
void*) GetProcAddress( (HINSTANCE)
library, procname );
53 library = GetModuleHandle(
NULL );
55 proc = (
void*) GetProcAddress( (HINSTANCE)
library, MAKEINTRESOURCE(symbol) );
62 FreeLibrary((HINSTANCE) library);