Re: win32 process name

2004-12-22 Thread Keith Dart
Fredrik Lundh wrote: "phil" <[EMAIL PROTECTED]> wrote: from win32all EnumProcesses gives me the pids, then OpenProcess(pid) gives me a handle. Then what? GetModuleFileNameEX? It requires two handles as args and I can't figure out which one is the handle from OpenProcess and what it wants for the

Re: win32 process name

2004-12-22 Thread Andrey Ivanov
[phil] > I need to know if a process is running. > not just python.exe > but python.exe myapp > from win32all > EnumProcesses gives me the pids, then > OpenProcess(pid) gives me a handle. > Then what? > GetModuleFileNameEX? It won't do the right thing for you. As far as I know, G

Re: win32 process name

2004-12-21 Thread Fredrik Lundh
"phil" <[EMAIL PROTECTED]> wrote: > from win32all > EnumProcesses gives me the pids, then > OpenProcess(pid) gives me a handle. > Then what? > GetModuleFileNameEX? It requires two handles as args > and I can't figure out which one is the handle from OpenProcess > and what it wants for the other o