77c92265da55b7deb9d4204aa6cfa2d065608a77
[reactos.git] / reactos / lib / crt / process / dll.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/msvcrt/process/dll.c
5 * PURPOSE: Dll support routines
6 * PROGRAMER: Boudewijn Dekker
7 * UPDATE HISTORY:
8 * 04/03/99: Created
9 */
10
11 #include "precomp.h"
12 #include <process.h>
13
14
15 /*
16 * @implemented
17 */
18 void* _loaddll(char* name)
19 {
20 return LoadLibraryA(name);
21 }
22
23 /*
24 * @implemented
25 */
26 int _unloaddll(void* handle)
27 {
28 return FreeLibrary(handle);
29 }
30
31 /*
32 * @implemented
33 */
34 FARPROC _getdllprocaddr(void* hModule, char* lpProcName, int iOrdinal)
35 {
36 if (lpProcName != NULL)
37 return GetProcAddress(hModule, lpProcName);
38 else
39 return GetProcAddress(hModule, (LPSTR)iOrdinal);
40 return (NULL);
41 }