How to check if a process is running using python22?
<p>I need to make a Python2.2 program to check if injector.exe process is started, how ?</p>

<pre><code>import win32ui

def WindowExists(classname):
    try:
        win32ui.FindWindow(classname, None)
    except win32ui.error:
        return False
    else:
        return True

if WindowExists("DropboxTrayIcon"):
    print "Dropbox is running, sir."
else:
    print "Dropbox is running..... not."
</code></pre>
