Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to call dialog on DLL_PROCESS_ATTACH?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Wed Dec 03, 2008 10:12 pm    Post subject: How to call dialog on DLL_PROCESS_ATTACH? Reply with quote

How would i make my dialog pop up, that i made in res edit, pop up when its injected?
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Dec 03, 2008 10:59 pm    Post subject: Reply with quote

Lol responding on my iPod touch... Haha
Anyways CreateThread on DLL_PROCESS_ATTACH and call DialogBox In that Thread

_________________
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Wed Dec 03, 2008 11:19 pm    Post subject: Reply with quote

I have no clue, how to do that lol. But thanks for the reply, do you have any examples DConfused Or MSDN?
Back to top
View user's profile Send private message
Wintermoot
Expert Cheater
Reputation: 0

Joined: 08 Nov 2007
Posts: 198

PostPosted: Wed Dec 03, 2008 11:47 pm    Post subject: Reply with quote

Search for BlankRider's MSInfo or Kitterz Trainer. Either of those will show you how and what to do...
Back to top
View user's profile Send private message
blackmorpheus
Expert Cheater
Reputation: 0

Joined: 05 Apr 2008
Posts: 159

PostPosted: Thu Dec 04, 2008 3:36 am    Post subject: Reply with quote

got a link to that? there are like 500 topics with Kitterz trainer.
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Thu Dec 04, 2008 7:33 am    Post subject: Reply with quote

thanks.
Back to top
View user's profile Send private message
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Thu Dec 04, 2008 7:35 pm    Post subject: Reply with quote

Just look up the parameters for CreateThread....
Is it really that hard?

_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Thu Dec 04, 2008 10:11 pm    Post subject: Reply with quote

http://smartz993.wordpress.com/2008/12/05/c-using-createdialog-function-and-also-settinggetting-item-text/

Here i made a whole guide just for you.
Back to top
View user's profile Send private message
kb3z0n
Grandmaster Cheater
Reputation: 0

Joined: 13 Mar 2007
Posts: 542

PostPosted: Thu Dec 04, 2008 10:51 pm    Post subject: Reply with quote

thanks Spencer, xD
Back to top
View user's profile Send private message
pkedpker
Master Cheater
Reputation: 1

Joined: 11 Oct 2006
Posts: 412

PostPosted: Fri Dec 05, 2008 12:07 am    Post subject: Reply with quote

I'd do this

Code:


BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                )
{
   switch(ul_reason_for_call)
   {
   case DLL_PROCESS_ATTACH:
   DialogBoxParam(hModule,MAKEINTRESOURCE(IDD_DIALOG),0,DlgThread,0);


DlgThread would be your message processer



if that doesn't work cuz ur sharing thread and all you could do this.

Code:

HMODULE hMyModule;
HANDLE hThreadDialog = NULL;

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
                )
{
   switch(ul_reason_for_call)
   {
   case DLL_PROCESS_ATTACH:
      hMyModule = hModule;
      theThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)CreateDialog,NULL,0,NULL);
      break;
...



Code:

int CreateDialog()
{
   DialogBoxParam(hMyModule,MAKEINTRESOURCE(IDD_DIALOG),0,DlgThread,0);
   CloseHandle(theThread);
   return 0;
}

_________________
Hacks I made for kongregate.
Kongregate Universal Badge Hack: http://forum.cheatengine.org/viewtopic.php?p=4129411
Kongreate Auto Rating/Voter hack: http://forum.cheatengine.org/viewtopic.php?t=263576
Took a test lol
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites