ReactOS 0.4.15-dev-7924-g5949c20
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}
#define FreeLibrary(x)
Definition: compat.h:748

Referenced by DllMain(), 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}
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
const char * filename
Definition: ioapi.h:137

Referenced by ODBC_LoadDriverManager(), 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}
#define GetProcAddress(x, y)
Definition: compat.h:753