网站首页  词典首页

请输入您要查询的函数:

 

术语 globalgetatomname
释义 GlobalGetAtomName
语法:
UINT GlobalGetAtomName( ATOM nAtom,
LPTSTR lpBuffer,
int nSize
);
GlobalGetAtomName功能
该GlobalGetAtomName功能检索与指定的全球原子相关的字符串的副本。
参数
nAtom
[in]标识全球原子与字符串相关的检索。
lpBuffer
[out]指向为字符串缓冲区。
nSize
[in]指定的大小,在TCHARs,缓冲区的。对于功能这是字节数ANSI版本。对于宽字符(Unicode)函数的版本,这是字符数。
返回值
如果函数成功,返回值是复制到缓冲区的字符串的长度,在TCHARs,不包括终止空字符。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
一个整数原子返回的字符串(一个原子,其值的范围是0x0001到0xBFFF)是一个空结尾的字符串,其中第一个字符是英镑符号(#),其余的字符表示无符号整数原子的价值。
安全警告:
使用此函数不正确可能会损害您的程序的安全性。此函数不正确地使用包括不正确指定的lpBuffer参数的大小。此外,请注意全球原子是任何人都容易,因此,隐私和其内容的完整性得不到保障。
在Windows 95/98/Me:GlobalGetAtomNameW是支持的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,MAKEINTATOM
==英文原文==GlobalGetAtomName Function
The GlobalGetAtomName function retrieves a copy of the character string associated with the specified global atom.
Syntax
UINT GlobalGetAtomName( ATOM nAtom,
LPTSTR lpBuffer,
int nSize
);
Parameters
nAtom
[in] Identifies the global atom associated with 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. Also, note that a global atom is accessible by anyone; thus, privacy and the integrity of its contents is not assured.
Windows 95/98/Me: GlobalGetAtomNameW 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 , MAKEINTATOM
==原始网址==http://msdn.microsoft.com/en-us/library/ms649063(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 13:15:19