This function returns the number of times an atom has been used.
#define INCL_WINATOM #include <OS2.H> HATOMTBL atomtbl; ATOM atom = 25; WinQueryAtomlength(atomtbl, atom);