UniResetShiftState: Difference between revisions
Appearance
mNo edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | Reset the effective and actual shift state and LED status. | ||
=== Syntax === | |||
UniResetShiftState(keyboardHndl, shiftState, type) | |||
=== Parameters === | === Parameters === | ||
; keyboardHndl - [[ | ; keyboardHndl - [[KHAND]] - input : The key board handle received from [[UniCreateKeyboard]]. | ||
; shiftState - [[ | ; shiftState - [[USHIFTSTATE]] - input : The shift state consists of 3 32-bit values. These bit definitions define the actual, effective, and LED shift states. | ||
; type - [[ | ; type - [[ULONG]] - input : The type of reset of: | ||
* [[ | *[[KEYEV#KEYEV_RELEASE|KEYEV_RELEASE]] | ||
* [[ | *[[KEYEV#KEYEV_SET|KEYEV_SET]] | ||
* [[ | *[[KEYEV#KEYEV_ZERO|KEYEV_ZERO]] | ||
=== Constants === | === Constants === | ||
Line 15: | Line 17: | ||
=== Returns === | === Returns === | ||
An integer with values of: | An integer with values of: | ||
* [[ | * [[Unicode Errors|ULS_BADHANDLE]] | ||
* | * ULS_SUCCESS | ||
=== Module === | === Module === | ||
Line 24: | Line 26: | ||
=== Export name/Ordinal === | === Export name/Ordinal === | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
=== Example Code === | === Example Code === | ||
KHAND keyboardHndl; | |||
USHIFTSTATE shiftState; | |||
ULONG type; | |||
integer rc; | integer rc; | ||
... | ... | ||
Line 37: | Line 39: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[UniUpdateShiftState]] | ||
=== Notes === | === 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 Version Introduced === | ||
OS/2 Warp | OS/2 Warp | ||
[[Category: | [[Category:Uni]] |
Latest revision as of 18:56, 26 July 2017
Reset the effective and actual shift state and LED status.
Syntax
UniResetShiftState(keyboardHndl, shiftState, type)
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:
Constants
None
Returns
An integer with values of:
- ULS_BADHANDLE
- ULS_SUCCESS
Module
Define (C/C++)
Export name/Ordinal
Calling Convention
Example Code
KHAND keyboardHndl; USHIFTSTATE shiftState; ULONG type; integer rc; ... rc = UniResetShiftState(keyboardHndl, shiftState, type); ...
Related Functions
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