Using ::PostMessage and ::SendInput in a Service
Posted on 2003-11-12
To meet the requirement for a project, I am using a windows service (made with VC6 using the old CComModule) that spawns a thread which simulates mouse events when certain conditions occur.
Now, this worked when the program was in Local Server mode and not doing any of the message handling/etc, but when I put it into Service mode and starte it, everything works right except for the mouse messages. They don't seem to have any effect even though I receive no errors from the calls.