This is Alexandre's trick which I borrowed because it is very helpful in debugging lock problems. It would be nice to formalize this and make it available in a more general way but that is Alexandre's call.
Hi
Something like this plus a lot of documentation explaining what is going on.
I think this should go in debug.h but there is only trace stuff in there so I put it in library.h.
I approve :) i would like to have a wine_dbgstr_cs() :)
Alexandre ?
Regards, Raphael