次の方法で共有


MAKEINTATOM (Windows Embedded CE 6.0)

1/6/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] 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 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 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

Header windows.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Atoms Macros
GlobalAddAtom
GlobalFindAtom