BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpReserved) // reserved
{
// Perform actions based on the reason for calling.
switch(fdwReason)
{
case DLL_PROCESS_ATTACH:
Initialize once for each new process.
Return FALSE to fail DLL load.
HideModule(hinstDLL);
EraseHeaders(hinstDLL);
break;
}
return TRUE;