thylboy
March 16th, 2003, 08:09 PM
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!
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!