Jump to content

UniResetShiftState

From EDM2
Revision as of 05:28, 30 May 2006 by Daniel.lee.kruse (talk | contribs) (UniResetshiftState created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UniResetShiftState

UniResetShiftState(keyboardHndl, shiftState, type)
Reset the effective and actual shift state and LED status.

Parameters

keyboardHndl - KHAND - input
The key board handle received from UniCreateKeyboard.
shiftState - USHIFTSTATE - input
The shift state consists of 3 32-bit values. These bit definitions define the actual, effective, and LED shift states.
type - ULONG - input
The type of reset of:
KEYEV_RELEASE
Release all keys pressed.
KEYEV_SET
Set to secified key.
KEYEV_ZERO
Release all pressed and locked keys.

Constants

None

Returns

An integer with values of:

Module

Define (C/C++)

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

KHAND       keyboardHndl;
USHIFTSTATE shiftState;
ULONG       type;
integer     rc;
...
rc = UniResetShiftState(keyboardHndl, shiftState, type);
...

Related Functions

UniUpdateShiftState

Notes

UniResetShiftState is used to change the shift state not through the normal keying sequence. The LED status is maintained based on the shift state.

OS Version Introduced

OS/2 Warp