I'm trying to send Key combinations like Shift F8, etc to a specific window. I am able to send F8 by itself by posing a WM_KEYDOWN, then a WM_KEYUP and specifing (int)System.Windows.Forms.Keys.F8 as the wParam, but can't figure out how to do it with the shift key. I've tried ORing it with System.Windows.Forms.Keys.SHIFT as well as System.Windows.Forms.Keys.SHIFTKEY but that doesn't seem to work. Is there some other way?
Note that I can't use SendInput or possibly because they don't take window handles, and my window may not be in the foreground. Any suggestions appreciated...