KbdGetLayoutUni: Difference between revisions
Appearance
Created page with "==Description== Returns the name of the keyboard layout in use. ==Syntax== <PRE> #define INCL_KBD #include <os2.h> PSZ pszName; →Keyboard layout name.: HKBD ..." |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Returns the name of the keyboard layout in use. | Returns the name of the keyboard layout in use. | ||
==Syntax== | ==Syntax== | ||
KbdGetLayoutUni(name, hkbd); | |||
==Parameters== | ==Parameters== | ||
; | ;name (USHORT *) - output : Keyboard layout name. | ||
:A pointer to the location to return the keyboard layout name in unicode. This must be at least 9 UniChars long. | |||
A pointer to the location to return the keyboard layout name. This must be at least 9 | ;hkbd (HKBD) - input : Reserved. Must be 0. | ||
; hkbd (HKBD) - input : Reserved. Must be 0. | |||
==Return Code== | ==Return Code== | ||
;rc (APIRET) - returns:KbdGetHWID returns one of the following values: | |||
* 0 NO_ERROR | |||
KbdGetHWID returns one of the following values: | * 373 ERROR_KBD_PARAMETER | ||
* 439 ERROR_KBD_INVALID_HANDLE | |||
* 0 | |||
* 373 | |||
* 439 | |||
==Related Functions== | ==Related Functions== | ||
* | *[[KbdSetLayoutUni]] | ||
[[Category: | [[Category:Kbd]] |
Latest revision as of 20:22, 29 November 2019
Returns the name of the keyboard layout in use.
Syntax
KbdGetLayoutUni(name, hkbd);
Parameters
- name (USHORT *) - output
- Keyboard layout name.
- A pointer to the location to return the keyboard layout name in unicode. This must be at least 9 UniChars long.
- hkbd (HKBD) - input
- Reserved. Must be 0.
Return Code
- rc (APIRET) - returns
- KbdGetHWID returns one of the following values:
- 0 NO_ERROR
- 373 ERROR_KBD_PARAMETER
- 439 ERROR_KBD_INVALID_HANDLE