网站首页  词典首页

请输入您要查询的函数:

 

术语 getkeyboardlayoutname
释义 GetKeyboardLayoutName
语法:
BOOL GetKeyboardLayoutName( LPTSTR pwszKLID
);
GetKeyboardLayoutName功能
该GetKeyboardLayoutName函数检索,活跃的输入法区域设置标识符(前称键盘布局)。
参数
pwszKLID
[out]指向的缓冲区(最少长度KL_NAMELENGTH字符),接收的输入法区域设置标识符名称,包括终止空字符。这将是提供给LoadKeyboardLayout函数的字符串的副本,除非发生了布局替代。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
输入法区域设置标识符是一个比键盘布局更广泛的概念,因为它也可以包括演讲到文本转换器,输入法编辑器(IME),或任何其他形式的投入。
Windows NT/2000/XP的:GetKeyboardLayoutName收到了积极投入该系统的区域设置标识符的名称。
在Windows 95/98/Me:GetKeyboardLayoutName收到了积极投入的调用线程的区域设置标识符名称。
在Windows 95/98/Me:GetKeyboardLayoutNameW是支持微软层对于Unicode。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
键盘输入,ActivateKeyboardLayout,LoadKeyboardLayout,UnloadKeyboardLayout
==英文原文==GetKeyboardLayoutName Function
The GetKeyboardLayoutName function retrieves the name of the active input locale identifier (formerly called the keyboard layout).
Syntax
BOOL GetKeyboardLayoutName( LPTSTR pwszKLID
);
Parameters
pwszKLID
[out] Pointer to the buffer (of at least KL_NAMELENGTH characters in length) that receives the name of the input locale identifier, including the terminating null character. This will be a copy of the string provided to the LoadKeyboardLayout function, unless layout substitution took place.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The input locale identifier is a broader concept than a keyboard layout, since it can also encompass a speech-to-text converter, an Input Method Editor (IME), or any other form of input.
Windows NT/2000/XP: GetKeyboardLayoutName receives the name of the active input locale identifier for the system.
Windows 95/98/Me: GetKeyboardLayoutName receives the name of the active input locale identifier for the calling thread.
Windows 95/98/Me: GetKeyboardLayoutNameW is supported by the Microsoft Layer for Unicode. To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .
Function Information
Minimum DLL Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Keyboard Input , ActivateKeyboardLayout , LoadKeyboardLayout , UnloadKeyboardLayout
==原始网址==http://msdn.microsoft.com/en-us/library/ms646298(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:22:13