Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

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.

Syntax

LPTSTR MAKEINTATOM(
  WORD 
wInteger
);

Parameters

wInteger

[in] WORDthat 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 Value

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

Remarks

Although the return value of the MAKEINTATOMmacro is cast as an LPTSTRvalue, you cannot use the value as a string pointer except when you pass the value to atom-management functions that require an LPTSTRargument.

The MAKEINTATOMmacro is defined as follows.

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

Requirements

Header windows.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also