ReactOS 0.4.15-dev-7842-g558ab78
dll.c File Reference
#include <precomp.h>
Include dependency graph for dll.c:

Go to the source code of this file.

Functions

intptr_t _loaddll (char *name)
 
int _unloaddll (intptr_t handle)
 
FARPROC _getdllprocaddr (intptr_t hModule, char *lpProcName, intptr_t iOrdinal)
 

Function Documentation

◆ _getdllprocaddr()

FARPROC _getdllprocaddr ( intptr_t  hModule,
char lpProcName,
intptr_t  iOrdinal 
)

Definition at line 32 of file dll.c.

33{
34 if (lpProcName != NULL)
35 return GetProcAddress((HMODULE) hModule, lpProcName);
36 else
37 return GetProcAddress((HMODULE) hModule, (LPSTR)iOrdinal);
38 return (NULL);
39}
#define NULL
Definition: types.h:112
HMODULE hModule
Definition: animate.c:44
#define GetProcAddress(x, y)
Definition: compat.h:753
char * LPSTR
Definition: xmlstorage.h:182

◆ _loaddll()

intptr_t _loaddll ( char name)

Definition at line 16 of file dll.c.

17{
18 return (intptr_t) LoadLibraryA(name);
19}
int intptr_t
Definition: crtdefs.h:304
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
Definition: name.c:39

◆ _unloaddll()

int _unloaddll ( intptr_t  handle)

Definition at line 24 of file dll.c.

25{
26 return FreeLibrary((HMODULE) handle);
27}
#define FreeLibrary(x)
Definition: compat.h:748