Jump to content

KBDHWID: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== KBDHWID ==
== KBDHWID ==
Keyboard hardware ID structure.  
Keyboard hardware ID structure.  


=== Type ===  
=== Type ===  
 
  [[USHORT]]  cb
  [[OS2 API:DataType:USHORT|USHORT]]  cb
  USHORT  idKbd
  [[OS2 API:DataType:USHORT|USHORT]] idKbd
  USHORT  idSecond
  [[OS2 API:DataType:USHORT|USHORT]] idSecond


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


=== Fields ===
=== Fields ===
 
;cb:Size, in bytes, of this data structure.
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.
          On input, this field should contain the length of the Keyboard ID
;idKbd:Keyboard hardware ID
          structure. The minimum input length value allowed is 2. On output,
:OS/2 supported keyboards and their hardware-generated IDs are as follows:
          this field contains the actual number of bytes returned.
ID     Keyboard  
 
0000H  Undetermined keyboard type  
idKbd     Keyboard hardware ID
0001H  PC-AT Standard Keyboard  
          OS/2 supported keyboards and their hardware-generated IDs are as
AB41H  101 Key Enhanced Keyboard  
          follows:
AB41H  102 Key Enhanced Keyboard  
 
AB54H  88 and 89 Key Enhanced Keyboard  
          ID             Keyboard  
AB85H  122 Key Enhanced Keyboard  
          0000H  Undetermined keyboard type  
;idSecond:Secondary ID
          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
 
 
 
 
 
[[OS2_API | Back to OS/2 API]]
 


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

Revision as of 15:17, 11 November 2016

KBDHWID

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