GetAsyncShiftFlags (Windows Embedded CE 6.0)
1/6/2010
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.
Syntax
KEY_STATE_FLAGS GetAsyncShiftFlags(
UINT VKey
);
Parameters
- VKey
[in] Specifies a virtual-key code. For more information, see Translating Scan Codes to Virtual-Key Codes.
Return Value
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
Header | pwinuser.h |
Library | Kbdui.lib |
Windows Embedded CE | Windows CE .NET 4.2 and later |
See Also
Reference
Keyboard Functions
GetKeyState
MapVirtualKey