Link to home
Start Free TrialLog in
Avatar of vbwizardxxx
vbwizardxxx

asked on

MessageBox Api Hook

I need some vb code for a program that will set up a system api hook for the MessageBox function.  When an external program calls the MessageBox function, my program, which is running, needs to be able to find out the text that the messagebox reported.

Thanks,

vbwizardxxx
ASKER CERTIFIED SOLUTION
Avatar of NBrownoh
NBrownoh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of validtec
validtec

Try out API Hook SDK
http://www.validtec.com
Windows API Hook SDK that can hooking most API of Windows System or functions in 3rd Application's DLL
I tried to implement what you have above, but my variable keeps coming back empty from the Original Message Box. Am I missing something?