mirror of
https://github.com/reactos/reactos.git
synced 2024-10-30 11:35:58 +00:00
40 lines
751 B
C
40 lines
751 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS system libraries
|
|
* FILE: lib/sdk/crt/process/dll.c
|
|
* PURPOSE: Dll support routines
|
|
* PROGRAMER: Ariadne
|
|
* UPDATE HISTORY:
|
|
* 04/03/99: Created
|
|
*/
|
|
|
|
#include <precomp.h>
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
intptr_t _loaddll(char* name)
|
|
{
|
|
return (intptr_t) LoadLibraryA(name);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
int _unloaddll(intptr_t handle)
|
|
{
|
|
return FreeLibrary((HMODULE) handle);
|
|
}
|
|
|
|
/*
|
|
* @implemented
|
|
*/
|
|
FARPROC _getdllprocaddr(intptr_t hModule, char* lpProcName, intptr_t iOrdinal)
|
|
{
|
|
if (lpProcName != NULL)
|
|
return GetProcAddress((HMODULE) hModule, lpProcName);
|
|
else
|
|
return GetProcAddress((HMODULE) hModule, (LPSTR)iOrdinal);
|
|
return (NULL);
|
|
}
|