Messagebox C++

Posts 1–8 of 8 · Page 1 of 1
Messagebox C++
Hello all, this can be very easy for some ppl, I am very noob in C++, I can create some simples hacks after see very videos in youtube, I need a little help for put a messabox in my project of new 255.

This code below when I inject DLL dont stop come messagebox -.- and close my bs in first screen, without pop-up work fine.

I dont wanna do hacks without pop-up, anyone can help me ???

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
MessageBox(0, "255 Injected Sucefull", "By MPGH Yulu", MB_OK);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
// attach to process
// return FALSE to fail DLL load
break;
case DLL_PROCESS_DETACH:
// detach from process
break;

case DLL_THREAD_ATTACH:
// attach to thread
break;

case DLL_THREAD_DETACH:
// detach from thread
break;
}
return 1; // succesful
}
1. fix your english. (do not worry)
2. eh the DLL attached / if the DLL injected then show the box.
Quote Originally Posted by Jhem View Post
1. fix your english. (do not worry)
2. eh the DLL attached / if the DLL injected then show the box.
English is fault of google translate, sorry.
this code message appears over and over again.
Code:
case DLL_PROCESS_ATTACH:
add your message box here =]
break;
Quote Originally Posted by MasterBS View Post
Make it simple

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
 if ( dwReason == DLL_PROCESS_ATTACH )
 {
//Start your hacks : D
 MessageBox(0,"Yulu gay","aqui o Titulo",MB_OK | MB_ICONINFORMATION); 
 }
return 1;

}
Obrigado Guilherme pela atenção, seu bag
Quote Originally Posted by Minerva View Post
Obrigado Guilherme pela atenção, seu bag
Believe this is solved. Also keep in mind this is an English forum only, except for certain sections which have their designated language. If you want, you can post both languages just make sure there's an English translation along with it.
/Closed
Make it simple

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
 if ( dwReason == DLL_PROCESS_ATTACH )
 {
//Start your hacks : D
 MessageBox(0,"Yulu gay","aqui o Titulo",MB_OK | MB_ICONINFORMATION); 
 }
return 1;

}
you can google that how to make message box in c++
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?