mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:05:41 +00:00
[SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
This commit is contained in:
parent
d09f611410
commit
527f2f9057
20177 changed files with 0 additions and 1312061 deletions
39
lib/sdk/crt/process/dll.c
Normal file
39
lib/sdk/crt/process/dll.c
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/msvcrt/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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue