home *** CD-ROM | disk | FTP | other *** search
- EXTPROC CEnvi
- /***************************************************************************
- *** ProcList.cmd - CEnvi program to list the names of processes running ***
- *** ver.1 and the ID of each process. ***
- ***************************************************************************/
-
- PList = ProcessList()
- assert( NULL != PList )
- Count = 1 + GetArraySpan(PList)
- printf(" ID Parent name FullName\n");
- printf("---- ------ -------- -------------\n");
- for ( i = 0; i < Count; i++ ) {
- printf(" %-6d%-7d%-10s%s\n",
- PList[i].id,PList[i].parent,
- SplitFileName(PList[i].name).name,PList[i].name)
- }
-