SetKeyboardState ()的文档中正确指出,您无法使用此 API 来切换 NUM LOCK、CAPS LOCK 和 SCROLL LOCK 键。你可以使用 keybd_event ()在 Windows NT 下切换 NUM LOCK、CAPS LOCK 和 SCROLL LOCK 键...
2009年4月8日 BOOL SetKeyboardState( LPBYTElpKeyState); Parameters lpKeyState [in] Pointer to a 256-byte array that contains keyboard key states. Return Value If t...
2007年9月8日 Private Declare Function SetKeyboardState Lib "user32" (lppbKeyState As Byte) As Long Private Sub SetKeyState(intKey As Integer, fTurnOn As Boolean) ...