ReactOS  0.4.15-dev-2956-g61e7ea5
loader.c File Reference
#include "config.h"
#include "wine/port.h"
#include <assert.h>
#include <ctype.h>
#include <fcntl.h>
#include <limits.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "windef.h"
#include "winbase.h"
#include "wine/library.h"
Include dependency graph for loader.c:

Go to the source code of this file.

Macros

#define NONAMELESSUNION
 
#define NONAMELESSSTRUCT
 

Functions

voidwine_dlsym (void *handle, const char *symbol, char *error, size_t errorsize)
 
voidwine_dlopen (const char *filename, int flag, char *error, size_t errorsize)
 
int wine_dlclose (void *handle, char *error, size_t errorsize)
 

Macro Definition Documentation

◆ NONAMELESSSTRUCT

#define NONAMELESSSTRUCT

Definition at line 43 of file loader.c.

◆ NONAMELESSUNION

#define NONAMELESSUNION

Definition at line 42 of file loader.c.

Function Documentation

◆ wine_dlclose()

int wine_dlclose ( void handle,
char error,
size_t  errorsize 
)

Definition at line 58 of file loader.c.

59 {
60  return FreeLibrary(handle);
61 }
BOOL WINAPI DECLSPEC_HOTPATCH FreeLibrary(HINSTANCE hLibModule)
Definition: loader.c:460

Referenced by DllMain(), schan_imp_deinit(), schan_imp_init(), wined3d_dxtn_free(), and wined3d_dxtn_init().

◆ wine_dlopen()

void* wine_dlopen ( const char filename,
int  flag,
char error,
size_t  errorsize 
)

Definition at line 53 of file loader.c.

54 {
55  return LoadLibraryA(filename);
56 }
const char * filename
Definition: ioapi.h:135
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111

Referenced by ODBC_LoadDriverManager(), schan_imp_init(), and wined3d_dxtn_init().

◆ wine_dlsym()

void* wine_dlsym ( void handle,
const char symbol,
char error,
size_t  errorsize 
)

Definition at line 48 of file loader.c.

49 {
50  return GetProcAddress(handle, symbol);
51 }
FARPROC WINAPI GetProcAddress(HMODULE hModule, LPCSTR lpProcName)
Definition: loader.c:401