just do like DWORD only like this
void ShowMessage(char* overtext);
bool IsGameReadyForHook()
{
if (GetModuleHandleA(eCShell) != NULL && GetModuleHandleA(eClient) != NULL)
return true;
return false;
}
bool ismsg = false;
DWORD APIENTRY kernel32()
{
while (!IsGameReadyForHook())
{
Sleep(200);
}
while (true)
{
if (!ismsg)
{
ShowMessage("You have been restricted from server for 14 days(358 \n"
"hours 58 minutes) minutes");
ismsg = true;
}
IDMan();
}
}
void ShowMessage(char* overtext)
{
DWORD CShell = (DWORD)GetModuleHandleA(eCShell);
if (CShell != NULL)
{
__asm
{
push 0;
push overtext;
push 0;
push 0x77;
push 0x2E;
mov ESI, CShell;
add ESI, 0x178750;
call ESI;
add ESP, 0x14;
}
}
}
extern "C" __declspec(dllexport)BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hModule);
HideModule(hModule);
HideinList(hModule);
EraseHeaders(hModule);
ErasePE(hModule);
CreateStealthThread(0, 0, kernel32, 0, 0, 0);
HideThread(kernel32);
break;
case DLL_PROCESS_DETACH:
break;
}
return true;
}