Finding window handle from a service
Hi All!
I´m sorry if this ha been posted already but I haven´t been able to find it....
I have an NT service that is trying to send a message to a user application window. I know the window title so I´m trying to use FindWindow and FindWindowEx to get a handle that I can use to send messages using PostMessage and SendMessage... As long as I do it from a "normal" application (Window or console based) it works neat and tidy, but when run from my service, the same piece of code i sunable to retrieve a handle to the window....
So, my question is: How do I correctly get the handle of a user application from an NT service?
Thanks in advance!