Box Message when injecting?

Posts 14 of 4 · Page 1 of 1
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]
Question has been answered.
/Closed
Posts 14 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?