Jump to content

HOTKEY: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== HOTKEY ==
Session Manager Hot Key data structure


Session Manager Hot Key data structure.
== Type ==
 
  [[USHORT]]  fsHotKey
=== Type ===
  [[UCHAR]]  uchScancodeMake
 
  UCHAR  uchScancodeBreak
  [[OS2 API:DataType:USHORT|USHORT]]  fsHotKey
  USHORT  idHotKey
  [[OS2 API:DataType:UCHAR|UCHAR]]  uchScancodeMake
  [[OS2 API:DataType:UCHAR|UCHAR]]   uchScancodeBreak
  [[OS2 API:DataType:USHORT|USHORT]] idHotKey
 
==== C Declaration Method ====


=== C Declaration Method ===
typedef struct
typedef struct


=== Fields ===
== Fields ==
 
;fsHotKey:State Key Flag. Has the following settings:
fsHotKey         State Key Flag. Has the following settings:
High Byte    Bit settings are as follows:
 
Bit 15      Reserved = 0  
                  High Byte    Bit settings are as follows:
Bit 14      Reserved = 0  
                  Bit 15      Reserved = 0  
Bit 13      Reserved = 0  
                  Bit 14      Reserved = 0  
Bit 12      Reserved = 0  
                  Bit 13      Reserved = 0  
Bit 11      Right Alt key down  
                  Bit 12      Reserved = 0  
Bit 10      Right Ctrl key down  
                  Bit 11      Right Alt key down  
Bit  9      Left Alt key down  
                  Bit 10      Right Ctrl key down  
Bit  8      Left Ctrl key down
                  Bit  9      Left Alt key down  
                  Bit  8      Left Ctrl key down
Low Byte    Bit settings are as follows:
 
Bit 7        Reserved = 0
                  Low Byte    Bit settings are as follows:
Bit 6        Reserved = 0
                  Bit 7        Reserved = 0  
Bit 5        Reserved = 0
                  Bit 6        Reserved = 0  
Bit 4        Reserved = 0
                  Bit 5        Reserved = 0  
Bit 3        Reserved = 0
                  Bit 4        Reserved = 0  
Bit 2        Reserved = 0
                  Bit 3        Reserved = 0  
Bit 1        Left Shift key down
                  Bit 2        Reserved = 0  
Bit 0        Right Shift key down
                  Bit 1        Left Shift key down  
;uchScancodeMake:The Scan Code of the hot key, Make.
                  Bit 0        Right Shift key down  
;uchScancodeBreak:The Scan Code of the hot key, Break.
 
;idHotKey:Hot Key Id.
uchScancodeMake The Scan Code of the hot key, Make.
:The Hot Key Id value is set by the caller. Notice that ID value FFFFh is reserved and must not be used as a Hot Key ID. See Remarks in IOCtl KBD_SETSESMGRHOTKEY.
uchScancodeBreak The Scan Code of the hot key, Break.
:A maximum of two of the above bit selections can be selected for a given hot key definition. If more than two bits are selected or if a reserved bit is selected, the result is an INVALID_PARAMETER error code returned to the caller.
idHotKey         Hot Key Id.
                  The Hot Key Id value is set by the caller. Notice that ID
                  value FFFFh is reserved and must not be used as a Hot Key ID.
                  See Remarks in IOCtl KBD_SETSESMGRHOTKEY.
                  A maximum of two of the above bit selections can be selected
                  for a given hot key definition. If more than two bits are
                  selected or if a reserved bit is selected, the result is an
                  INVALID_PARAMETER error code returned to the caller.
 
 
[[OS2_API | Back to OS/2 API]]
 


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Latest revision as of 00:54, 9 February 2020

Session Manager Hot Key data structure

Type

USHORT  fsHotKey
UCHAR   uchScancodeMake
UCHAR   uchScancodeBreak
USHORT  idHotKey

C Declaration Method

typedef struct

Fields

fsHotKey
State Key Flag. Has the following settings:
High Byte    Bit settings are as follows:
Bit 15       Reserved = 0 
Bit 14       Reserved = 0 
Bit 13       Reserved = 0 
Bit 12       Reserved = 0 
Bit 11       Right Alt key down 
Bit 10       Right Ctrl key down 
Bit  9       Left Alt key down 
Bit  8       Left Ctrl key down

Low Byte     Bit settings are as follows:
Bit 7        Reserved = 0
Bit 6        Reserved = 0
Bit 5        Reserved = 0
Bit 4        Reserved = 0
Bit 3        Reserved = 0
Bit 2        Reserved = 0
Bit 1        Left Shift key down
Bit 0        Right Shift key down
uchScancodeMake
The Scan Code of the hot key, Make.
uchScancodeBreak
The Scan Code of the hot key, Break.
idHotKey
Hot Key Id.
The Hot Key Id value is set by the caller. Notice that ID value FFFFh is reserved and must not be used as a Hot Key ID. See Remarks in IOCtl KBD_SETSESMGRHOTKEY.
A maximum of two of the above bit selections can be selected for a given hot key definition. If more than two bits are selected or if a reserved bit is selected, the result is an INVALID_PARAMETER error code returned to the caller.