GetAtomName

  UINT GetAtomName(atm, lpszBuffer, cchBuffer)    
  ATOM atm; /* atom identifying character string */
  LPTSTR lpszBuffer; /* address of the buffer for the atom string */
  DWORD cchBuffer; /* size of buffer */

The GetAtomName function retrieves a copy of the character string associated with the specified local atom.

Parameters

atm

Specifies the local atom that identifies the character string to be retrieved.

lpszBuffer

Points to the buffer for the character string.

cchBuffer

Specifies the maximum size of the buffer (in characters).

Return Value

The return value specifies the length of the string copied to the buffer, (in characters) not including the terminating null character. The return value is zero if the specified atom is not valid.

Comment

The GetAtomName function may be used as either a wide-character function (where text arguments must use Unicode) or an ANSI function (where text arguments must use characters from the Windows 3.x character set installed).