home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SAMPLES / MM / CASECONV / HHPHEAP.H < prev   
C/C++ Source or Header  |  1995-08-24  |  2KB  |  61 lines

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