I am integrating a third party C-based SDK into my .NET application. The application will run as a Windows service on a server, so it should not interact with the user in a
This is not very easy. I would think the only way is to write a message hook to trap messages pumped through all the windows message loops on the system. But I'm not even sure that a service can create a message hook given it does not have access to the default window station under its default credentials (LocalSystem). So task # one would be to see if that would actually work.
But here is a rough sketch of how I would try to do it outside of a service context and you can see if it applies:
This is all very dicey mind you, but it is the path that seems like it has any chance to me.