home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / oclsrc15.zip / OCL / Include / OMemu.hpp < prev    next >
C/C++ Source or Header  |  1996-08-12  |  3KB  |  94 lines

  1. // OCL - OS/2 Class Library
  2. // (c) Cubus 1995
  3. // (c) Glenn Brew, Cook, Benjamin Stein 1995
  4. // All Rights Reserved
  5. // OMemu.hpp
  6.  
  7.  
  8. // This class uses OS20MEMU.DLL
  9. // written by Glenn Brew and Ross Cook (IBM EWS).
  10. // If this library or its device driver OS20MEMU.SYS
  11. // are not available the constructor of OMemu will fail.
  12.  
  13.  
  14. /*
  15.  * Redistribution and use in source and binary forms, with or without
  16.  * modification, are permitted provided that the following conditions
  17.  * are met:
  18.  * 1. Redistributions of source code must retain the above copyright
  19.  *    notice, this list of conditions and the following disclaimer.
  20.  * 2. Neither the name Cubus nor the name Team OCL may be used to
  21.  *    endorse or promote products derived from this software
  22.  *    without specific prior written permission.
  23.  * 3. See OCL.INF for a detailed copyright notice.
  24.  *
  25.  *              THIS SOFTWARE IS PROVIDED ``AS IS'' AND
  26.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  29.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  31.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  33.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  34.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  35.  * SUCH DAMAGE.
  36.  */
  37.  
  38. // $Header: W:/Projects/OCL/Include/rcs/OMemu.hpp 1.50 1996/08/11 23:47:21 B.STEIN Release $
  39.  
  40. #ifndef OMEMU_INCLUDED
  41.   #define OMEMU_INCLUDED
  42.  
  43.  
  44. #ifndef OSTRING_INCLUDED
  45.   #include <OString.hpp>
  46. #endif
  47.  
  48. #ifndef ODYNAMICLIB_INCLUDED
  49.   #include <ODynamicLib.hpp>
  50. #endif
  51.  
  52. #ifndef OLIST_INCLUDED
  53.   #include <OList.hpp>
  54. #endif
  55.  
  56. #ifndef OMEMU_H_INCLUDED
  57.   #include <OMemu.h>
  58. #endif
  59.  
  60.  
  61.  
  62. class __CPP_EXPORT__ OMemu
  63.  : public os20memu_general_info,
  64.    public OList<gi_process_data_s>
  65.  
  66. {
  67.  private:
  68.    ODynamicLib         *memu_library;
  69.    PMEMU_GGI           EP_get_general_info;
  70.    PMEMU_GPI           EP_get_process_info;   
  71.  
  72.  public:
  73.    OMemu               ();
  74.  
  75.    virtual
  76.       ~OMemu           ();
  77.  
  78.    virtual
  79.       PSZ isOfType     () const; 
  80.  
  81.    BOOL
  82.       querySystem      (),    // query general info and process list
  83.       queryGeneralInfo ();    // query only general info
  84.  
  85.    static ULONG
  86.      makeKByte         (ULONG pages);
  87. };
  88.  
  89.  
  90. #endif // OMEMU_INCLUDED
  91.  
  92.  
  93. // end of source
  94.