.net - How can I prevent a third party library from displaying a MessageBox? -
I am integrating a third party C-based SDK into my .NET application. This application will run on a server as a Windows service, so it should not interfere with the user in any way.
Unfortunately, in some error situations, this emphasizes calling MessageBoxA, possibly to report that something bad has happened. When this happens, the response to the service stops. I guess it is waiting for someone to press on.
It is not possible that the vendor can change his code for me.
Is there any way I can call this in a no-op so my code can deal with the situation itself?
EDIT: It may be important to mention that in my special case this service will automatically restart, a beautiful (possibly) and sudden exit is probably the best solution for a situation where A message box is displayed in my case.
Check Out This allows you to change the arbitrary Windows API functions. C / C ++ programming is essential for this work. You will not need much
Comments
Post a Comment