| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | process list |
-=> Quoting Paul Edwards to All <=-
PE> PSTAT prints a list of processes in the system. How do I do the same
PE> thing from my C program? (besides system("pstat")!). I
have looked at
PE> GUIREF20 and can't find a suitable API (I want all system processes,
PE> not just ones that I spawned). BFN. Paul.
Here's C source using the undocumented DosQuerySysState().
I've compiled it under CSet++ v2.01, EMX v0.9, and Borland v2.0
begin 666 ps.zip
M4$L#!!0``{at}`(`!22D2`{at}=4NQ;{at}(```T%```$````<',N8X53;4_;,!#^CL1_
M.#HAG#:#M$/[0!>FK{at}U0*6W3I)VV"0F%Q"66\B;'9:")_[ZS\]+0:EHB.<[=
M<\^=GSM?=.&&Q?0*'.]\#-V+XZ,/(=VPE,)T/K8?){at}O/<1=CR_/V'#-K-KMU
M#]&6ZRY73=MA0B9-F>+1"O.3W$Q>SQP,A9^O3>V,F+
M\Z{at}CTXZ4OWJOA2=\08&L[<7\5C] * Origin: The Blues Cafe (214) 638-1186 8 Nodes (1:124/8014.0)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 124/8014 8001 1 396/1 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.