This function finds an atom in the atom table.
#define INCL_WINATOM /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HATOMTBL hatomtblAtomTbl; /* Atom-table handle. */ PSZ pszAtomName; /* Atom name. */ ATOM atom; /* Atom value. */ atom = WinFindAtom(hatomtblAtomTbl, pszAtomName);