>You are absolutely right of course. I looked in the place in code where I had more than one exe running and the logic was a little different. But still there must be a solution within one exe.
So, if I understand correctly, we call PeekMessage() with parameters telling him to cancel everything related to the current application before we call the process. I would then expect to call it back again after the process to cancel it.
There is a structure definition in PeekMessage(). Do you know how to handle that? Any sample?