GetAsyncShiftFlags

Windows Mobile 6.5
A version of this page is also available for
4/8/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.


KEY_STATE_FLAGS GetAsyncShiftFlags(
  UINT VKey
);

VKey

[in] Specifies a virtual-key code.

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.

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.

Headerpwinuser.h
LibraryKbdui.lib
Windows Embedded CEWindows CE .NET 4.2 and later
Windows MobileWindows Mobile Version 5.0 and later
Show: