hwave,你是想模拟win+F1键按下是吗,试试下边代码:
keybd_event(91, MapVirtualKey( 91, 0 ), 0 , 0 ); // win 键按下
keybd_event(77, MapVirtualKey( 110, 0 ), 0 , 0 ); // F1键按下
keybd_event(77, MapVirtualKey( 110, 0 ), KEYEVENTF_KEYUP , 0 ); // F1键抬起
keybd_event(91, MapVirtualKey( 91, 0 ), KEYEVENTF_KEYUP , 0 ); // win 键抬起
对了,我记得好象F1的A码是110,(好象也不是
),你查一下吧,