C++ SendInput possible in Windows Service?
问题 First off, I'd like to say that I've used StackOverflow for years, and this is the first time I haven't found an existing answer. A testament to what a valuable resource this is. Background: I'm trying to catch MIDI input from a connected device and have it trigger keyboard events to whichever window has focus. I was able to do this successfully using SendInput in a Windows Console application, but would prefer to run this as a service. I was able to hide the console window and have it work,