Newsgroups: comp.os.os2.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!NewsServ!rommel
From: rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel)
Subject: Re: PID and Process name
Organization: Technische Universitaet Muenchen, Germany
Date: Wed, 20 Mar 1991 08:30:17 GMT
Message-ID: <1991Mar20.083017.25338@Informatik.TU-Muenchen.DE>
Keywords: PID, Thread, Name
References: <1991Mar14.021619.17901@ibmpa.awdpa.ibm.com> <303@miccal.CAMPBELL.CA.US> <18476@milton.u.washington.edu>
Sender: news@Informatik.TU-Muenchen.DE

In article <18476@milton.u.washington.edu> rol@grasp1.univ-lyon1.fr (Paul Rolland) writes:
>	With OS/2 release 1.1, I'd like to have something that will work a
>bit like the pstat of release 1.2. So, I'd like to able to get, once I've a
>process ID, its name, the threads associated, their running level...
>	I'd also like to do this in C. But I don't know how to get these
>informations from the PID. Could s.o. help me ? Please reply directly to
>rol@grasp1.univ-lyon1.fr

There is an undocumented System  Call which is used with pstat in 1.2,
it is names DosQProcStatus(). Some time ago I have posted an article
about this here. If you are interested, I could send it to you. Also, I
have submitted a program, MAP, to comp.binaries.os2 (which was not yet
posted by the moderatore) which shows processes, shmem, semaphores etc.
and uses this call.

Kai Uwe Rommel

