Jump to content

KbdSetLayout

From EDM2
Revision as of 17:51, 21 June 2016 by Martini (talk | contribs) (Created page with "==Description== Allows the keyboard layout to be changed. This change affects only the current session. ==Syntax== <PRE> #define INCL_KBD #include <os2.h> PSZ pszName;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Allows the keyboard layout to be changed. This change affects only the current session.

Syntax

#define INCL_KBD
#include <os2.h>

PSZ       pszName;  /*  Keyboard layout name. */
HKBD      hkbd;     /*  Reserved.  Must be zero. */
APIRET    rc;       /*  Return code. */

rc = 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

Remarks

Example Code


Related Functions