ReactOS  0.4.13-dev-563-g0561610
dll.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS system libraries
4  * FILE: lib/sdk/crt/process/dll.c
5  * PURPOSE: Dll support routines
6  * PROGRAMER: Ariadne
7  * UPDATE HISTORY:
8  * 04/03/99: Created
9  */
10 
11 #include <precomp.h>
12 
13 /*
14  * @implemented
15  */
17 {
18  return (intptr_t) LoadLibraryA(name);
19 }
20 
21 /*
22  * @implemented
23  */
25 {
26  return FreeLibrary((HMODULE) handle);
27 }
28 
29 /*
30  * @implemented
31  */
32 FARPROC _getdllprocaddr(intptr_t hModule, char* lpProcName, intptr_t iOrdinal)
33 {
34  if (lpProcName != NULL)
35  return GetProcAddress((HMODULE) hModule, lpProcName);
36  else
37  return GetProcAddress((HMODULE) hModule, (LPSTR)iOrdinal);
38  return (NULL);
39 }
FARPROC _getdllprocaddr(intptr_t hModule, char *lpProcName, intptr_t iOrdinal)
Definition: dll.c:32
char * LPSTR
Definition: xmlstorage.h:182
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
smooth NULL
Definition: ftsmooth.c:416
int _unloaddll(intptr_t handle)
Definition: dll.c:24
#define FreeLibrary(x)
Definition: compat.h:405
int intptr_t
Definition: crtdefs.h:283
intptr_t _loaddll(char *name)
Definition: dll.c:16
Definition: name.c:36
#define GetProcAddress(x, y)
Definition: compat.h:410
int(* FARPROC)()
Definition: compat.h:28
HMODULE hModule
Definition: animate.c:44