KbdSetLayout: Difference between revisions
Appearance
m Ak120 moved page OS2 API:CPI:KbdSetLayout to KbdSetLayout |
mNo edit summary |
||
Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
KbdSetLayout(pszName, hkbd) | |||
==Parameters== | ==Parameters== | ||
;pszName (PSZ) - input : Keyboard layout name. | ;pszName (PSZ) - input: Keyboard layout name. | ||
:The name of the keyboard layout. The length of the name cannot exceed 8 characters. | :The name of the keyboard layout. The length of the name cannot exceed 8 characters. | ||
;hkbd (HKBD) - input : Reserved. Must be zero. | ;hkbd (HKBD) - input: Reserved. Must be zero. | ||
==Return Code== | ==Return Code== | ||
;rc (APIRET) - returns:KbdSetLayout returns one of the following values: | |||
KbdSetLayout returns one of the following values: | * 0 NO_ERROR | ||
* 0 NO_ERROR | *373 ERROR_KBD_PARAMETER | ||
* 373 ERROR_KBD_PARAMETER | *439 ERROR_KBD_INVALID_HANDLE | ||
* 439 ERROR_KBD_INVALID_HANDLE | |||
==Related Functions== | ==Related Functions== |
Latest revision as of 20:14, 29 November 2019
Allows the keyboard layout to be changed. This change affects only the current session.
Syntax
KbdSetLayout(pszName, hkbd)
Parameters
- pszName (PSZ) - input
- Keyboard layout name.
- The name of the keyboard layout. The length of the name cannot exceed 8 characters.
- hkbd (HKBD) - input
- Reserved. Must be zero.
Return Code
- rc (APIRET) - returns
- KbdSetLayout returns one of the following values:
- 0 NO_ERROR
- 373 ERROR_KBD_PARAMETER
- 439 ERROR_KBD_INVALID_HANDLE