Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > win32 process information, using win32 extension

Reply
Thread Tools

win32 process information, using win32 extension

 
 
Java and Swing
Guest
Posts: n/a
 
      10-21-2005
i need to get information about the processes running on a windows pc
(98, 2k, xp)

i can get the pid's using, win32process.EnumProcesses()...and I can get
a handle on a process using an id..such as

handle = win32api.OpenProcess(win32con.PROCESS_QUERY_INFORM ATION, 0,
pids[0])

...but how can i get the name of the process, path to process, etc. I
have the win32 extensions (pywin32) on python 2.4.

thanks.

 
Reply With Quote
 
 
 
 
Chris Lambacher
Guest
Posts: n/a
 
      10-24-2005
I started down the win32process path trying to solve the same problem. That
only ended in misery for me.

Try this recipie instead:
http://aspn.activestate.com/ASPN/Coo.../Recipe/442477

-Chris

On Fri, Oct 21, 2005 at 07:12:34AM -0700, Java and Swing wrote:
> i need to get information about the processes running on a windows pc
> (98, 2k, xp)
>
> i can get the pid's using, win32process.EnumProcesses()...and I can get
> a handle on a process using an id..such as
>
> handle = win32api.OpenProcess(win32con.PROCESS_QUERY_INFORM ATION, 0,
> pids[0])
>
> ..but how can i get the name of the process, path to process, etc. I
> have the win32 extensions (pywin32) on python 2.4.
>
> thanks.
>
> --
> http://mail.python.org/mailman/listinfo/python-list

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
win32/process Process.create failure Mike Stead Ruby 3 03-25-2010 01:15 AM
Win32/Process when create a process, how to pass data Qi Lu Ruby 0 07-14-2008 07:38 PM
RE: win32 process information, using win32 extension Tim Golden Python 0 10-21-2005 02:18 PM
(Win32) Timing out a process while reading process' output? rtm Perl 0 09-27-2004 10:06 PM
Unload extension modules when python22.dll unloads... [using C extension interpreter] Anand Python 3 11-08-2003 05:50 AM



Advertisments