Boost logo

Boost-Build :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2006-06-26 10:20:18

Andreas Fredriksson wrote:
> Hi Bronek,
> could one install a hook DLL when running programs that patches
> MessageBoxA and MessageBoxW to just log to stdout and exit so that it
> would mimic unix behavior?

we cannot hook system DLL unless we really want to "play dirty" with the
operating system (eg. use detours). If we try to do that, we would probably
lose testers not willing to mess with their machines (eg. because these
machines might actually belong to someone else, like employer; or because
these machines are used to other tasks where more conventional behaviour is

> All of this killing business seems very complex to me. Sorry if this
> has been discussed before on a thread I've missed.

it's actually pretty simple, that is: "this is how these things are usually
done in Win32 world - find the window and send WM_CLOSE message to it".
Someone more experienced could simplify my code, but I believe that it's "good
enough". Hooking DLLs is much more complex and affects whole system.

Unfortunatelly, this is not *nix world and different rules apply

But, we could indeed (quite easily) read text content of those pesky message
boxes before closing them and put that content in stdout or stderr (bjam ones,
not the ones of the failing process) - is there desire for such feature?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at