GetAsyncShiftFlags (Windows CE 5.0)
This function provides asynchronous state information about the virtual key that is passed in. It also provides the current state information on the shift flags provided by KEY_STATE_FLAGS.
KEY_STATE_FLAGS GetAsyncShiftFlags(UINTVKey);
Parameters
- VKey
[in] Specifies a virtual-key code. For more information, see Virtual-Key Codes.
Return Values
If the function succeeds, the low-order bits of the return value specify the current state information about the virtual key that is passed in. The high-order bits track the current shift state on a key-by-key basis. For more information on retrieving the information from the return value, see the topic KEY_STATE_FLAGS.
Passing in an invalid virtual-key code will cause the function to return 0 and set the last-error code to ERROR_INVALID_PARAMETER. Since 0 is also a valid return value, you must clear the last-error code before calling this function in order to check on the success of a call to GetAsyncShiftFlags.
Requirements
OS Versions: Windows CE .NET 4.2 and later.
Header: Pwinuser.h.
Link Library: Kbdui.lib.
See Also
KEY_STATE_FLAGS | Virtual-Key Codes | GetKeyState | MapVirtualKey | Keyboard Functions
Send Feedback on this topic to the authors