MAKEINTATOM  3MQ7MH0 

The MAKEINTATOM macro creates an integer atom that represents a character string of decimal digits.

Integer atoms created by this macro can be added to an atom table by using the AddAtomME0_NZ or GlobalAddAtom1QH2CM4 function.

LPTSTR MAKEINTATOM(

    WORD wInteger

// integer to make into atom

   );

 

 

Parameters

wInteger

Specifies the numeric value to be made into an integer atom.

 

Return Values

The return value is a pointer to the atom created for the given integer.

Remarks

Although the return value of the MAKEINTATOM macro is cast as an LPTSTR14LG1OG value, it cannot be used as a string pointer except when it is passed to atom-management functions that require an LPTSTR argument.

The DeleteAtom.H4SG7 and GlobalDeleteAtomR61D9P functions always succeed for integer atoms, even though they do nothing. The string returned by the GetAtomNameCGY.AY and GlobalGetAtomName.HM_J2 functions for an integer atom is a null-terminated string in which the first character is a pound sign (#) and the remaining characters are the decimal digits used in the MAKEINTATOM macro.

The MAKEINTATOM macro is defined as follows:

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

 

See Also

AddAtom, DeleteAtom, GetAtomName, GlobalAddAtom, GlobalDeleteAtom, GlobalGetAtomName