I'm loading 3rd party DLLs and sometimes they open MessageBox windows that stops the flow of the application, I want to be able to detect when such thing happens.
I'm trying to use SetWindowsHookEx
with WH_CBT
but my callback does not get called.
I tried calling it this way:
SetWindowsHookEx (WH_CBT, myCallback, NULL, 0);
But it didn't worked.
What should be the right call for this function?