home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / mmpm2tk / mmpmtlk2 / admct / hhpheap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-06  |  2.4 KB  |  60 lines

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