KbdGetLayout

From EDM2
Revision as of 18:00, 29 November 2019 by Ak120 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns the name of the keyboard layout in use.

Syntax

KbdGetLayout(pszName, hkbd)

Parameters

pszName (PSZ) - output
Keyboard layout name.
A pointer to the location to return the keyboard layout name. This must be at least 9 bytes 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