How to send a message to an NT service?
Posted on 1997-05-13
How can I send a message to my program, which is running
as a service under NT?
My program runs as an NT service (managed by SRVANY.EXE), and it doesn't have a window -- but it does have a window procedure.
I'd like another of my programs to send a user message to the window procedure of my service program. But since it doesn't have a window, it doesn't have a window handle -- so I don't know how to send to it.
NT knows about the window procedure, because it calls it sometimes.
I'm able to obtain the process ID of my service program, but I don't know how to get from the process ID to the window procedure.
Thanks in advance, Mark