Hello forum
this my first Thread here . i know this is old but i think someone may learn something form it .
the code is very simple and clear
Code:
char* sModules[] = { “SbieDll.dll”, ”api_log.dll”, “dir_watch.dll”, “dbghelp.dll”};//define module names
bool ModuleCheck() //Return TRUE/FALSE .
{
for( int i = 0; i < ( sizeof( sModules ) / sizeof( char* ) ); i++ ) //for looping to get the module handle .
{
if( GetModuleHandle( sModules[ i ] ) ) //getting module handle.
{
return TRUE; //if exists return TRUE .
}
}
return FALSE; //if not return FALSE.
}