home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c070 / 1.ddi / TOOLS.1 / INCLUDE / BMEM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-03-31  |  1.5 KB  |  42 lines

  1. /**
  2. *
  3. *   BMEM.H -- Header file for TURBO C TOOLS Memory Management Functions
  4. *
  5. *   Version 6.00 (C)Copyright Blaise Computing Inc.  1986,1987,1989
  6. *
  7. **/
  8.  
  9. #ifndef DEF_BMEM              /* Prevent redefinition.          */
  10.  
  11. typedef struct              /* MEMCTRL:  DOS memory control block   */
  12. {                  /*   structure.                  */
  13.                   /*                      */
  14.     char     _dummy;          /* Dummy to force word alignment of     */
  15.                   /*   unsigned members, so no waste      */
  16.                   /*   space appears within structure.    */
  17.                   /*                      */
  18.                   /* Actual 16-byte copy of control block */
  19.                   /* starts here:                  */
  20.                   /*                      */
  21.     char     ident;          /* Identifying signature.           */
  22.     unsigned owner_psp;       /* Segment address of owner process's   */
  23.                   /*   PSP.                   */
  24.     unsigned size;          /* Size of memory block in paragraphs.  */
  25.     char     _reserved[11];
  26. } MEMCTRL;
  27.  
  28.     /* Function declarations                          */
  29.  
  30. unsigned cdecl mmsize(void);          /* Report program size.          */
  31.                       /*                  */
  32. int cdecl mmctrl(unsigned,MEMCTRL *,  /* Fetch memory control block   */
  33.        unsigned *);           /* and advance to next.          */
  34.                       /*                  */
  35. unsigned cdecl mmfirst(void);          /* Report first DOS memory      */
  36.                       /* block.               */
  37.  
  38. #define DEF_BMEM  1              /* Prevent second reading of    */
  39.                       /* these definitions.          */
  40.  
  41. #endif                      /* Ends "#ifndef DEF_BMEM"      */
  42.