グローバルアトムテーブルから文字列を取得する
Declare Function GlobalGetAtomName Lib "kernel32.dll" Alias "GlobalGetAtomNameA" _
(ByVal nAtom As Integer, ByVal lpBuffer As String, ByVal nSize As Long) As Integer
Declare Function GlobalGetAtomName Lib "kernel32.dll" Alias "GlobalGetAtomNameA" _
(ByVal nAtom As Short, ByVal lpBuffer As String, ByVal nSize As Integer) As Short
UINT GlobalGetAtomName(
ATOM nAtom,
LPTSTR lpBuffer,
int nSize
);
アトム
lpBuffer(戻り値)文字列を受け取るバッファ
nSize同、バイト数
戻り値成功したとき 取得したバイト数
失敗したとき 0
整数アトムに対する戻り値は、先頭に"#"が付いた文字列である。