Jump to content

UniQueryKeyboard: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
== UniQueryKeyboard ==
Get the header information from the keyboard table.
; UniQueryKeyboard(keyboardHndl, keyboardInfo) : Get the header information from the keyboard table.
 
==Syntax==
UniQueryKeyboard(keyboardHndl, keyboardInfo) ;


=== Parameters ===
=== Parameters ===
; keyboardHndl - [[KHAND]] - input : The key board handle received from [[UniCreateKeyboard]].
;keyboardHndl - [[KHAND]] - input : The key board handle received from [[UniCreateKeyboard]].
; keyboardInfo - [[KEYBOARDINFO]] - output : The keyboard infomation.
;keyboardInfo - [[KEYBOARDINFO]] - output : The keyboard information.


=== Constants ===
=== Constants ===
Line 11: Line 13:
=== Returns ===
=== Returns ===
An integer with values of:
An integer with values of:
* [[OS2 API:Unicode:error#ULS_BADHANDLE|ULS_BADHANDLE]]
* [[Unicode_Errors|ULS_BADHANDLE]]
* [[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]]
* ULS_SUCCESS


=== Calling conversion ===
=== Calling Convention ===
[[Cdecl32]]
[[Cdecl32]]


=== Example Code ===
=== Example Code ===
  [[KHAND]]       keyboardHndl;
  KHAND        keyboardHndl;
  [[KEYBOARDINFO]] keyboardInfo;
  KEYBOARDINFO keyboardInfo;
  integer      rc;
  integer      rc;
  ...
  ...

Latest revision as of 18:53, 16 January 2019

Get the header information from the keyboard table.

Syntax

UniQueryKeyboard(keyboardHndl, keyboardInfo) ;

Parameters

keyboardHndl - KHAND - input
The key board handle received from UniCreateKeyboard.
keyboardInfo - KEYBOARDINFO - output
The keyboard information.

Constants

None

Returns

An integer with values of:

Calling Convention

Cdecl32

Example Code

KHAND        keyboardHndl;
KEYBOARDINFO keyboardInfo;
integer      rc;
...
rc = UniQueryKeyboard(keyboardHndl, keyboardInfo);
...

Related Functions

OS Version Introduced

  • OS/2 Warp