ReactOS  0.4.15-dev-1068-g467feb9
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 }
char * LPSTR
Definition: xmlstorage.h:182
smooth NULL
Definition: ftsmooth.c:416
#define GetProcAddress(x, y)
Definition: compat.h:501
HMODULE hModule
Definition: animate.c:44

◆ _loaddll()

intptr_t _loaddll ( char name)

Definition at line 16 of file dll.c.

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

◆ _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:496