Hello
I am developing windows service which have to cooperate with dll. The problem is that this dll send a messages by SendMessage() with some data i need. How can I catch it, when windows service doesn't have a window. What i did:
1. I created simple windows form class which I add to my project and overrive WinProc method. The problem is it doesn't catch the messages until Form.Show() . It is impossible, because windows service doesn't allow for that.
2. I found that using class inherits from NativeWindow can catch such messages, but only for a while. When OnStart finishes (where I create new instance of such class) it doesn't catch any messages sent to it.
Is there any other solution for this problem?
Please help, I spent a lot of time on it and have no other idea.
Thanks in advance
brgds
Jacek