home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / samples / mm / cdmcidrv / hhpheap.h < prev    next >
C/C++ Source or Header  |  1999-05-11  |  2KB  |  57 lines

  1. /********************** START OF SPECIFICATIONS *****************************/
  2. /*                                                                          */
  3. /* SOURCE FILE NAME: HHPHEAP.H                                              */
  4. /*                                                                          */
  5. /* DESCRIPTIVE NAME: Heap manager include file.                             */
  6. /*                                                                          */
  7. /* COPYRIGHT:                                                               */
  8. /*                 Copyright (c) IBM Corporation 1991 - 1993                */
  9. /*                          All Rights Reserved                             */
  10. /*                                                                          */
  11. /* ABSTRACT: Contains data structures and prototypes that are used in       */
  12. /*           HHP API's.                                                     */
  13. /*                                                                          */
  14. /*********************** END OF SPECIFICATIONS ******************************/
  15.  
  16.  
  17. #ifndef _HHPHEAP_H_
  18. #define _HHPHEAP_H_
  19.  
  20. typedef PVOID HHUGEHEAP;
  21.  
  22. HHUGEHEAP APIENTRY HhpCreateHeap( ULONG uInitSize,
  23.                                   USHORT fFlags );
  24.  
  25. PVOID     APIENTRY HhpAllocMem( HHUGEHEAP hheap,
  26.                                 ULONG cbLen );
  27.  
  28. BOOL      APIENTRY HhpFreeMem( HHUGEHEAP hheap,
  29.                                PVOID pData );
  30.  
  31. BOOL      APIENTRY HhpDestroyHeap( HHUGEHEAP hheap );
  32.  
  33. /* Shared Heap Support */
  34.  
  35. USHORT    APIENTRY HhpAccessHeap( HHUGEHEAP hheap,
  36.                                   PID pid );
  37.  
  38. USHORT    APIENTRY HhpReleaseHeap( HHUGEHEAP hheap,
  39.                                    PID pid );
  40.  
  41. PID       APIENTRY HhpGetPID( VOID );
  42.  
  43. /* Low-Level Independent (Not Suballocated) Buffer Support */
  44.  
  45. PBYTE     APIENTRY HhpAllocBuffer( ULONG lSize,
  46.                                    USHORT fFlags );
  47.  
  48. USHORT    APIENTRY HhpFreeBuffer( PBYTE pBuffer );
  49.  
  50. USHORT    APIENTRY HhpAccessBuffer( PBYTE pBuffer );
  51.  
  52. #define HH_SHARED         0x1    /* Cause the Heap to be Shared */
  53.  
  54. USHORT    APIENTRY HhpDumpHeap( HHUGEHEAP hheap );
  55.  
  56. #endif /* _HHPHEAP_H_ */
  57.