Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

djberg96 (2603)

djberg96
  (email not shown publicly)

Journal of djberg96 (2603)

Monday February 17, 2003
10:57 AM

Windows support for sys-proctable

[ #10629 ]
Since I'm in a Windows programming mode, I decided I would try adding Windows support to sys-proctable, which is my Ruby port of Proc::ProcessTable. I noticed that Dan has cygwin support, but no pure Windows support, so I turned to the various windows programming newsgroups on deja.

After some initial futzing with some partial solutions I found posted online, I was eventually led to a Microsoft site. To my shock and amazement, I found the answer I needed at msdn.microsoft.com. A search on "enumprocesses" revealed all the code I would need to write a decent api (for NT 5 anyway - not sure if it works on NT 4).

The code listed, however, relies on a library that comes standard with the MS SDK (psapi.lib - note the "ps"), but isn't usually installed on a system by default. So, I need to triple check that it's ok to distribute with a tarball. What I've read online indicates that it's perfectly acceptable to distribute this lib (heck, I downloaded it off someone's site), but I want to make sure before I'm sued off the planet or something.

I suppose I should also add cygwin support at some point as well. ;)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.