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
16 intptr_t _loaddll(char* name
)
18 return (intptr_t) LoadLibraryA(name
);
24 int _unloaddll(intptr_t handle
)
26 return FreeLibrary((HMODULE
) handle
);
32 FARPROC
_getdllprocaddr(intptr_t hModule
, char* lpProcName
, intptr_t iOrdinal
)
34 if (lpProcName
!= NULL
)
35 return GetProcAddress((HMODULE
) hModule
, lpProcName
);
37 return GetProcAddress((HMODULE
) hModule
, (LPSTR
)iOrdinal
);