- Carrega dll e busca modulos e funções dentro delas
void call_dll(char *name_dll, char *function){
HMODULE path_dll = LoadLibrary(name_dll);
if(path_dll == NULL){
exit(1);
}
stcall_t search = (stcall_t)GetProcAddress(path_dll, function);
search();
FreeLibrary(path_dll);
}
- Caso você encontrar um bug Click-aqui crie um issue para eu corrigi-lo.
Baixe diretamente do github com:
- git clone https://github.com/AdrielFreud/LoadLibrary-C.git
- ou https://github.com/AdrielFreud/LoadLibrary-C/archive/master.zip
- ./LoadLibrary [type] [function]
- gcc & cygwin