Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   "ps -ef" in Windows (http://www.go4expert.com/forums/ps-ef-windows-t936/)

prasanta123 26Jun2006 11:49

"ps -ef" in Windows

Can anyone point me as to how to write a Java/C code that displays "ps -ef" Linux like output with Windows SDK maybe on Symbian?
If anyone already has that kind of program, can it be relayed to me?

Thanks in advance

shabbir 27Jun2006 10:53

Re: "ps -ef" in Windows
For those who are unaware of what ps command of linux does

PS peports the process status.
ps [-a] [-A] [-c] [-d] [-e] [-f] [-j] [-l] [-L] [-P] [-y] [ -g grplist ] [ -n namelist ] [-o format ] [ -p proclist ] [ -s sidlist ] [ -t term] [ -u uidlist ] [ -U uidlist ] [ -G gidlist ]

-e List information about every process now running.
-f Generate a full listing.

This can be done in C++ using the API EnumProcess. Here is the MSDN sample Enumerating All Processes

All times are GMT +5.5. The time now is 11:02.