5
#include <TlHelp32.h> // For module info.
6
#include <DbgHelp.h> // For stack walker.
13
void* GetDllHandle( const TCHAR* Filename )
16
return CALL_OS_TCHAR_FUNCTION(LoadLibraryW(Filename),LoadLibraryA(TCHAR_TO_ANSI(Filename)));
22
void FreeDllHandleappFreeDllHandle( void* DllHandle )
25
FreeLibrary( (HMODULE)DllHandle );
29
// Lookup the address of a DLL function.
31
void* GetDllExport( void* DllHandle, const TCHAR* ProcName )
35
return (void*)GetProcAddress( (HMODULE)DllHandle, TCHAR_TO_ANSI(ProcName) );