KBDHWID: Difference between revisions
Appearance
New |
mNo edit summary |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Keyboard hardware ID structure. | |||
=== Type === | |||
[[USHORT]] cb | |||
=== Type === | USHORT idKbd | ||
USHORT idSecond | |||
[[ | |||
==== C Declaration Method ==== | ==== C Declaration Method ==== | ||
typedef struct | typedef struct | ||
=== Fields === | === Fields === | ||
;cb:Size, in bytes, of this data structure. | |||
:On input, this field should contain the length of the Keyboard ID structure. The minimum input length value allowed is 2. On output, this field contains the actual number of bytes returned. | |||
;idKbd:Keyboard hardware ID | |||
:OS/2 supported keyboards and their hardware-generated IDs are as follows: | |||
::{|class=wikitable | |||
!ID||Keyboard | |||
|- | |||
|0000H||Undetermined keyboard type | |||
|- | |||
|0001H||PC-AT Standard Keyboard | |||
|- | |||
|AB41H||101-key Enhanced Keyboard | |||
|- | |||
|AB41H||102-key Enhanced Keyboard | |||
|- | |||
|AB54H||88- and 89-key Enhanced Keyboard | |||
|- | |||
|AB85H||122-key Enhanced Keyboard | |||
|} | |||
;idSecond:Secondary ID | |||
[[Category:Data type]] | |||
Latest revision as of 12:00, 5 June 2021
Keyboard hardware ID structure.
Type
USHORT cb USHORT idKbd USHORT idSecond
C Declaration Method
typedef struct
Fields
- cb
- Size, in bytes, of this data structure.
- On input, this field should contain the length of the Keyboard ID structure. The minimum input length value allowed is 2. On output, this field contains the actual number of bytes returned.
- idKbd
- Keyboard hardware ID
- OS/2 supported keyboards and their hardware-generated IDs are as follows:
ID Keyboard 0000H Undetermined keyboard type 0001H PC-AT Standard Keyboard AB41H 101-key Enhanced Keyboard AB41H 102-key Enhanced Keyboard AB54H 88- and 89-key Enhanced Keyboard AB85H 122-key Enhanced Keyboard
- idSecond
- Secondary ID