home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / os2db2.zip / PROCESS.HPP < prev    next >
Text File  |  1994-09-03  |  2KB  |  47 lines

  1.  /******************************************************
  2. *  PROCESS.HPP - Process Class                          *
  3.  ******************************************************/
  4.  
  5. #ifndef   PROCESS_CLASS
  6. #define   PROCESS_CLASS                               // process class
  7.  
  8. #include "doscall.hpp"                                // doscall class
  9.  
  10. CONST     ULONG       BUFFER_SIZE = 0xFFFFU;          // status buffer
  11. CONST     ULONG       END_PROCESS = 0x0003U;          // end indicator
  12.  
  13. CLASS     PROCESS {                                   // process class
  14. PUBLIC:
  15. UNIQUE                PROCESS(VOID);                  // a constructor
  16. UNIQUE               ~PROCESS(VOID);                  // a ~destructor
  17. PRIVATE:
  18. STATIC    CHAR        queryBuffer[BUFFER_SIZE];       // query buffer
  19. PRIVATE:
  20. UNIQUE    BOOL        queryStatus(PVOID statusBuffer, USHORT bufferSize);
  21. UNIQUE    BOOL        listProcess(PHEADERINFO headerInfo);
  22. UNIQUE    VOID        printModule(PMODULEINFO moduleInfo, PPROCESSINFO processInfo);
  23. PUBLIC:
  24. UNIQUE    BOOL        listRunning(VOID);              // list processes
  25. };
  26.  
  27.  /******************************************************
  28. *  PROCESS::PROCESS - a constructor                     *
  29.  ******************************************************/
  30.  
  31. INLINE PROCESS::PROCESS(VOID)
  32.  
  33. {
  34. }
  35.  
  36.  /******************************************************
  37. *  PROCESS::~PROCESS - a destructor                     *
  38.  ******************************************************/
  39.  
  40. INLINE PROCESS::~PROCESS(VOID)
  41.  
  42. {
  43. }
  44.  
  45. #endif                                                // process class
  46.  
  47.