[comp.os.os2.programmer] PID and Process name

rol@grasp1.univ-lyon1.fr (Paul Rolland) (03/16/91)

Hi,

	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

	Thanx in advance,
	Paul.

 Paul Rolland, engineer [I hope :)] in July 91,
 Specialist of assembly on PC [Not too bad in fact :)],
 Trying to progress on Unix administration

rommel@Informatik.TU-Muenchen.DE (Kai-Uwe Rommel) (03/20/91)

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