home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / RUNNING.ZIP / RUNNING.H < prev    next >
C/C++ Source or Header  |  1990-02-12  |  1KB  |  56 lines

  1. /* running.h
  2. **
  3. ** Copyright (c) 1989, Christopher Laforet
  4. ** All Rights Reserved
  5. **
  6. ** Started: 25 October 1989
  7. **
  8. ** Revision Information:
  9. **
  10. ** $Logfile:   D:/os2/running/vcs/running.h_v  $
  11. ** $Date:   12 Feb 1990 04:04:26  $
  12. ** $Revision:   1.3  $
  13. **
  14. */
  15.  
  16.  
  17. #define MAJOR_VERSION            1
  18. #define MINOR_VERSION            3
  19.  
  20.  
  21. struct id
  22.     {
  23.     USHORT pid;
  24.     USHORT ppid;
  25.     USHORT start_threads;
  26.     USHORT ready_threads;
  27.     USHORT blocked_threads;
  28.     USHORT frozen_threads;
  29.     USHORT critsec_threads;
  30.     USHORT background_threads;
  31.     USHORT other_threads;        /* zombie and boost */
  32.     USHORT signiture;
  33.     };
  34.  
  35.  
  36. struct proc
  37.     {
  38.     USHORT pid;
  39.     USHORT ppid;
  40.     USHORT signiture;
  41.     USHORT children;
  42.     USHORT start_threads;
  43.     USHORT ready_threads;
  44.     USHORT blocked_threads;
  45.     USHORT frozen_threads;
  46.     USHORT critsec_threads;
  47.     USHORT background_threads;
  48.     USHORT other_threads;
  49.     USHORT max_dependents;
  50.     USHORT *dependents;
  51.     UCHAR *process;
  52.     };
  53.  
  54.  
  55. extern USHORT APIENTRY DosQProcStatus(PVOID pBuf,USHORT cbBuf);
  56.