LPSTR MAKEINTATOM(wInteger)
This macro creates an integer atom that represents a character string of decimal digits.
Integer atoms created by this macro can be added to the atom table by means of the Add-Atom function.
Parameter | Type/Description |
wInteger | WORD Specifies the numeric value of the atom's character string. |
The return value points to the atom created for the given integer.
Although the return value of the MAKEINTATOM macro is cast as an LPSTR, the return value cannot be used as a string pointer, except when passing it to atom-management functions that require an LPSTR parameter. The return value is actually a 32-bit value. The low-order word of this 32-bit value contains the value of the integer specified by the wInteger parameter.
The DeleteAtom function always succeeds for integer atoms, even though it does nothing, and the GetAtomName function always returns the string form of the integer atom.