GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

If you have a question or need help, this is the place to be.

GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

Postby scissors » Thu Apr 05, 2012 3:44 pm

Hello,

Does anyone know of a way to call the Windows functions GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

GlobalGetAtomName: http://msdn.microsoft.com/en-us/library ... 85%29.aspx
GlobalDeleteAtom: http://msdn.microsoft.com/en-us/library ... 85%29.aspx
scissors
 
Posts: 21
Joined: Mon Oct 17, 2011 1:41 pm

Re: GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

Postby cfull1 » Tue Apr 24, 2012 6:05 pm

use a python script.
Code: Select all
from winappdbg.win32 import GlobalGetAtomName, MAXINTATOM
# print all valid named global atoms to standard output
def print_atoms():
    for x in xrange(0, MAXINTATOM):
        try:
            n = GlobalGetAtomName(x)
            if n == "#%d" % x:      # comment out to print
                continue            # valid numeric atoms
            print "Atom %4x: %r" % (x, n)
        except WindowsError:
            pass

GlobalGetAtomName python example
cfull1
Experienced User
 
Posts: 102
Joined: Thu Aug 19, 2010 4:52 am

Re: GlobalGetAtomName/GlobalDeleteAtom from EventGhost?

Postby scissors » Wed Jun 13, 2012 1:50 am

I forgot to reply a long time... Thanks for the help. :)
scissors
 
Posts: 21
Joined: Mon Oct 17, 2011 1:41 pm


Return to General Support

Who is online

Users browsing this forum: blaher, Google [Bot], Google Adsense [Bot] and 3 guests