diff options
author | Christopher Faylor <me@cgf.cx> | 2000-11-02 05:25:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-11-02 05:25:56 +0000 |
commit | 6d87f7d7c4f89ddbf550f22751f61d29cceab850 (patch) | |
tree | cebcc1674c120a72f31f4efa4f92912fc448662e /winsup/cygwin/pinfo.h | |
parent | e2fa502354e32466425ae03ebf2aa269835f2956 (diff) | |
download | cygnal-6d87f7d7c4f89ddbf550f22751f61d29cceab850.tar.gz cygnal-6d87f7d7c4f89ddbf550f22751f61d29cceab850.tar.bz2 cygnal-6d87f7d7c4f89ddbf550f22751f61d29cceab850.zip |
* pinfo.cc (EnumProcessesNT): New function. Eliminates dependence on psapi.h.
(EnumProcesses9x): Rename from EnumProcessesW95. Change arguments to be more
useful for cygwin.
(winpids::init): Accomodate argument changes.
(enum_init): Ditto.
* pinfo.h (winpids): Make pidlist dynamically extendable by storing it as a
pointer and remembering the size.
* ntdll.h: Add extra definitions needed for EnumProcessesNT. Reformat via
'indent'.
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index e9d54cf65..0620047ab 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -186,12 +186,13 @@ public: class winpids { - DWORD pidlist[16384]; + DWORD *pidlist; + DWORD npidlist; public: DWORD npids; void reset () { npids = 0; } winpids (int) { reset (); } - winpids () { init (); }; + winpids (): pidlist (NULL), npidlist (0) { init (); }; void init (); int operator [] (int i) const {return pidlist[i];} }; |