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>globaldeleteatom()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
GlobalDeleteAtom()
Delete an atom from the Windows system atom table
------------------------------------------------------------------------------

Syntax
GlobalDeleteAtom( <hAtom> )   -->   nCode

Arguments
<hAtom> is the handle of the atom to be deleted.

Returns
If successful, this function returns zero (0).  Otherwise,
<hAtom> is returned.
WARNING: these return values are probably not what you would
expect.

Description
This function decrements the reference count in the system-
wide atom table maintained by Windows (the GlobalAddAtom()
function increments the count).  If the reference count drops
to zero (0), the atom is removed from the table.

You will probably only use atoms if you are programming DDE.

Example
// remove an atom from the table
do while GlobalDeleteAtom( hAtom ) == 0
     // keep looping until failure, at which point the atom
     // must have finally gone
enddo


See Also: GlobalAddAtom() GlobalFindAtom() GlobalGetAtomName()

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