Share via


MAKEINTATOM

This macro converts the specified atom into a string so that an application can pass the atom to functions that accept either atoms or strings.

LPTSTR MAKEINTATOM(
  WORD wInteger
);

Parameters

  • wInteger
    [in] WORD that specifies the numeric value that you want to convert into a string. This parameter can be either an integer atom or a string atom.

Return Values

The return value is a pointer to a string generated by performing casts on the integer atom.

Remarks

Although the return value of the MAKEINTATOM macro is cast as an LPTSTR value, you cannot use the value as a string pointer except when you pass the value to atom-management functions that require an LPTSTR argument.

The MAKEINTATOM macro is defined as follows.

#define MAKEINTATOM(i)  (LPTSTR)((DWORD)((WORD)(i)))

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Windows.h.

See Also

GlobalAddAtom | GlobalFindAtom

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.