Box Message when injecting?
At the moment I currently have a message box that opens when the guy starts running on Combat Arms which isn't very convenient.. I leeched the source code from someone on here :P
How can i get it to appear on injection?
Put it in dllmain....
The If (dwReason = processattach)
blah blah (do you stuff here)
(pseudocode)
This is how it should look.
[php]BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
MessageBox (0, TEXT("Some text\n"), TEXT("Your Name"), MB_ICONINFORMATION);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MyHack, 0, 0, 0);
break;
case DLL_PROCESS_DETACH:
break;
}
return true;
}[/php]