Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>findatom()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
FindAtom()
Find an atom in the application's atom table
------------------------------------------------------------------------------

Syntax
FindAtom( <cName> )   -->   hAtom

Arguments
<cName> is the name of the atom to look for.

Returns
If successful, this function returns a handle to the atom.
This handle will be a non-zero numeric.  If the atom is not
found, or an error occurs, zero (0) is returned.

Description
This function searches for a string in the application's
private atom table maintained by Windows, and returns a handle
to the atom.  An atom may be any string, excluding null
characters, although you should keep them reasonably short (to
avoid consuming too much memory).

Example
if  FindAtom( "MyApp" ) != 0
     // already there
else
     // not there
endif


See Also: AddAtom() DeleteAtom() GetAtomName()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson