网站首页  词典首页

请输入您要查询的函数:

 

术语 getatomname
释义 GetAtomName
语法:
UINT GetAtomName( ATOM nAtom,
LPTSTR lpBuffer,
int nSize
);
GetAtomName功能
该GetAtomName功能检索与指定的本地原子相关的字符串的副本。
参数
nAtom
[in]指定本地原子标识字符串要检索。
lpBuffer
[out]指向为字符串缓冲区。
nSize
[in]指定的大小,在TCHARs,缓冲区的。对于ANSI版本的功能,这是字节数。对于宽字符(Unicode)函数的版本,这是字符数。
返回值
如果函数成功,返回值是复制到缓冲区的字符串的长度,在TCHARs,不包括终止空字符。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
一个整数原子返回的字符串(一个原子,其值的范围是0x0001到0xBFFF)是一个空结尾的字符串,其中第一个字符是英镑符号(#),其余的字符表示无符号整数原子的价值。
安全警告:
使用此函数不正确可能会损害您的程序的安全性。此函数不正确地使用包括不正确指定的lpBuffer参数的大小。
在Windows 95/98/Me:GetAtomNameW是支持的Unicode(MSLU)微软层。要使用此,您必须将某些文件到您的应用,概述了对Unicode的Microsoft层在Windows 95/98/Me系统。
功能信息
最低DLL版本 kernel32.dll
在Winbase.h HeaderDeclared,头文件:winuser.h
import libraryKernel32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为ANSI和Unicode版本。
参见
atoms OverView,AddAtom,DeleteAtom,FindAtom,GlobalAddAtom,GlobalDeleteAtom,GlobalFindAtom,GlobalGetAtomName,MAKEINTATOM
==英文原文==GetAtomName Function
The GetAtomName function retrieves a copy of the character string associated with the specified local atom.
Syntax
UINT GetAtomName( ATOM nAtom,
LPTSTR lpBuffer,
int nSize
);
Parameters
nAtom
[in] Specifies the local atom that identifies the character string to be retrieved.
lpBuffer
[out] Pointer to the buffer for the character string.
nSize
[in] Specifies the size, in TCHARs, of the buffer. For ANSI versions of the function, this is the number of bytes. For wide-character (Unicode) versions of the function, this is the number of characters.
Return Value
If the function succeeds, the return value is the length of the string copied to the buffer, in TCHARs, not including the terminating null character.
If the function fails, the return value is zero. To get extended error information, call GetLastError .
Remarks
The string returned for an integer atom (an atom whose value is in the range 0x0001 to 0xBFFF) is a null-terminated string in which the first character is a pound sign (#) and the remaining characters represent the unsigned integer atom value.
Security Alert
Using this function incorrectly might compromise the security of your program. Incorrect use of this function includes not correctly specifying the size of the lpBuffer parameter.
Windows 95/98/Me: GetAtomNameW is supported by the Microsoft Layer for Unicode (MSLU). 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 Versionkernel32.dll
HeaderDeclared in Winbase.h, include Windows.h
Import libraryKernel32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as ANSI and Unicode versions.
See Also
Atoms Overview , AddAtom , DeleteAtom , FindAtom , GlobalAddAtom , GlobalDeleteAtom , GlobalFindAtom , GlobalGetAtomName , MAKEINTATOM
==原始网址==http://msdn.microsoft.com/en-us/library/ms649059(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:27:49