This is my threadfunc.
And this in dll attachUINT WINAPI ThreadFunc( LPVOID lpParam )
{
mainform = new TForm3(NULL);
mainform->Show();
Application->ProcessMessages() ;
delete mainform;
return 0;
}
But when mainform->Show(); it show with a secound and destroy.if (fdwReason == DLL_PROCESS_ATTACH)
{
// InitializeMadCHook();
CollectHooks ();
HookAPI("WS2_32.DLL", "send", sendCallback, (PVOID)sendNext ,(unsigned)(0x0));
FlushHooks ();
Madkernel::NewThread(ThreadFunc)->WouldWait();
}
I want to a mainform process message as usual form ,help me please?
Thank in advance.