ReactOS 0.4.15-dev-8222-g9164419
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 */
32FARPROC _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}
int intptr_t
Definition: crtdefs.h:304
#define NULL
Definition: types.h:112
HMODULE hModule
Definition: animate.c:44
int(* FARPROC)()
Definition: compat.h:36
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
Definition: loader.c:111
intptr_t _loaddll(char *name)
Definition: dll.c:16
int _unloaddll(intptr_t handle)
Definition: dll.c:24
FARPROC _getdllprocaddr(intptr_t hModule, char *lpProcName, intptr_t iOrdinal)
Definition: dll.c:32
Definition: name.c:39
char * LPSTR
Definition: xmlstorage.h:182