mirror of https://github.com/hashcat/hashcat.git
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.
44 lines
639 B
44 lines
639 B
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#include "common.h"
|
|
#include "dynloader.h"
|
|
|
|
#ifdef _WIN
|
|
|
|
HMODULE hc_dlopen (LPCSTR lpLibFileName)
|
|
{
|
|
return LoadLibraryA (lpLibFileName);
|
|
}
|
|
|
|
BOOL hc_dlclose (HMODULE hLibModule)
|
|
{
|
|
return FreeLibrary (hLibModule);
|
|
}
|
|
|
|
FARPROC hc_dlsym (HMODULE hModule, LPCSTR lpProcName)
|
|
{
|
|
return GetProcAddress (hModule, lpProcName);
|
|
}
|
|
|
|
#else
|
|
|
|
void *hc_dlopen (const char *filename)
|
|
{
|
|
return dlopen (filename, RTLD_NOW);
|
|
}
|
|
|
|
int hc_dlclose (void *handle)
|
|
{
|
|
return dlclose (handle);
|
|
}
|
|
|
|
void *hc_dlsym (void *handle, const char *symbol)
|
|
{
|
|
return dlsym (handle, symbol);
|
|
}
|
|
|
|
#endif
|