You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
321 B
19 lines
321 B
3 years ago
|
#include "winhelper.h"
|
||
|
#include <Windows.h>
|
||
|
|
||
|
|
||
|
void* dlopen(const char* lib, int)
|
||
|
{
|
||
|
return LoadLibraryA(lib);
|
||
|
}
|
||
|
|
||
|
void* dlsym(void* handle, const char* proc)
|
||
|
{
|
||
|
return GetProcAddress(static_cast<HMODULE>(handle), proc);
|
||
|
}
|
||
|
|
||
|
int dlclose(void* handle)
|
||
|
{
|
||
|
return FreeLibrary(static_cast<HMODULE>(handle));
|
||
|
}
|