Jump to content

KbdSetLayoutUni

From EDM2
Revision as of 17:53, 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> USHORT *name; ...")
(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>

USHORT     *name;  /*  Keyboard layout name. */
HKBD        hkbd;  /*  Reserved.  Must be 0. */
APIRET      rc;    /*  Return code. */

rc = KbdSetLayoutUni(name, hkbd);

Parameters

name (USHORT *) - input
Keyboard layout name.

Address of the unicode name of the keyboard layout. The name cannot exceed 8 UniChars in length.

hkbd (HKBD) - input
Reserved. Must be 0.

Return Code

rc (APIRET) - returns
  • 0 NO_ERROR
  • 373 ERROR_KBD_PARAMETER
  • 439 ERROR_KBD_INVALID_HANDLE

Remarks

Example Code


Related Functions