KbdGetLayoutUni: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:KbdGetLayoutUni to KbdGetLayoutUni |
|||
Line 28: | Line 28: | ||
*[[KbdSetLayoutUni]] | *[[KbdSetLayoutUni]] | ||
[[Category: | [[Category:Kbd]] |
Revision as of 05:11, 9 January 2017
Returns the name of the keyboard layout in use.
Syntax
#define INCL_KBD #include <os2.h> USHORT *name; /* Keyboard layout name. */ HKBD hkbd; /* Reserved. Must be 0. */ APIRET rc; /* Return code. */ rc = 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