home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PTREE10.ZIP / PROCTREE.H < prev   
C/C++ Source or Header  |  1990-03-22  |  693b  |  50 lines

  1. /* proctree.h
  2. **
  3. ** Copyright (c) 1989, Christopher Laforet
  4. ** All Rights Reserved
  5. **
  6. **
  7. ** Revision History:
  8. **
  9. ** $Header$
  10. **
  11. */
  12.  
  13.  
  14. #include <os2.h>
  15.  
  16.  
  17. /* 1.  Constants and Macros */
  18.  
  19. #define MAJOR_VERSION            1
  20. #define MINOR_VERSION            0
  21.  
  22.  
  23. /* 2.  Structures and Unions */
  24.  
  25. struct node
  26.     {
  27.     USHORT pid;
  28.     USHORT ppid;
  29.     USHORT signiture;
  30.     UCHAR *name;
  31.     USHORT threads;
  32.     USHORT printed;
  33.     };
  34.  
  35.  
  36.  
  37. /* 3.  Global Variables */
  38.  
  39. extern struct node **nodes;
  40. extern short cur_nodes;
  41. extern short max_nodes;
  42. extern short level;
  43. extern short current;
  44.  
  45.  
  46. /* 4.  Functions */
  47.  
  48. extern void get_procedures(void);
  49. extern void print_tree(USHORT parent,short level);
  50.