
How to hide a messagebox before it pops up, in a dialog based app
On way is to load the DLL using LoadLibrary, and patch the
MessageBoxA/MessageBoxW entry in its IAT ( Import Address Table ).
You need to understand the PE file format to do this. There are great
articles by Matt on this subject in msdn. Search for
"Peering Inside the PE: A Tour of the Win32 Portable Executable File
Format"
Cheers
Check Abdoul
------------------
Quote:
> Thanks. I should explain my problem clearer.
> I am trying to avoid a messagebox from another DLL, which
> I can't get a handle. The code is like this:
> MyDialog::OnInitDialog()
> {
> ...;
> init_dll;//There is a messagebox in this function
> ...;
> }
> How should I do?
> >-----Original Message-----
> >Try to post a message to your dialog in OnInitDialog().
> In the message
> >handler, you can call ShowWindow() to hide it. Here is
> another technique:
> >http://www.mooremvp.freeserve.co.uk/Win32/framed_tip026.ht
> m
> >--
> >Ajay Kalra [MVP - VC++]
> >> Which function can be used to call?
> >> Thanks.
> >.