| View previous topic :: View next topic |
| Author |
Message |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 10:12 pm Post subject: How to call dialog on DLL_PROCESS_ATTACH? |
|
|
| How would i make my dialog pop up, that i made in res edit, pop up when its injected?
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Wed Dec 03, 2008 10:59 pm Post subject: |
|
|
Lol responding on my iPod touch... Haha
Anyways CreateThread on DLL_PROCESS_ATTACH and call DialogBox In that Thread
_________________
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Wed Dec 03, 2008 11:19 pm Post subject: |
|
|
I have no clue, how to do that lol. But thanks for the reply, do you have any examples D Or MSDN?
|
|
| Back to top |
|
 |
Wintermoot Expert Cheater
Reputation: 0
Joined: 08 Nov 2007 Posts: 198
|
Posted: Wed Dec 03, 2008 11:47 pm Post subject: |
|
|
| Search for BlankRider's MSInfo or Kitterz Trainer. Either of those will show you how and what to do...
|
|
| Back to top |
|
 |
blackmorpheus Expert Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 159
|
Posted: Thu Dec 04, 2008 3:36 am Post subject: |
|
|
| got a link to that? there are like 500 topics with Kitterz trainer.
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Thu Dec 04, 2008 7:33 am Post subject: |
|
|
| thanks.
|
|
| Back to top |
|
 |
Overload Master Cheater
Reputation: 0
Joined: 08 Feb 2008 Posts: 293
|
Posted: Thu Dec 04, 2008 7:35 pm Post subject: |
|
|
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 |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
|
| Back to top |
|
 |
kb3z0n Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 542
|
Posted: Thu Dec 04, 2008 10:51 pm Post subject: |
|
|
| thanks Spencer, xD
|
|
| Back to top |
|
 |
pkedpker Master Cheater
Reputation: 1
Joined: 11 Oct 2006 Posts: 412
|
Posted: Fri Dec 05, 2008 12:07 am Post subject: |
|
|
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;
}
|
_________________
|
|
| Back to top |
|
 |
|