home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
warptlk3.zip
/
TOOLKIT
/
BETA
/
H
/
HHPHEAP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-04
|
3KB
|
65 lines
/********************** START OF SPECIFICATIONS *****************************/
/* */
/* SOURCE FILE NAME: HHPHEAP.H */
/* */
/* DESCRIPTIVE NAME: Heap manager include file. */
/* */
/* COPYRIGHT: */
/* Copyright (c) IBM Corporation 1991 */
/* All Rights Reserved */
/* */
/* STATUS: OS/2 MM Release 1.00 */
/* */
/* ABSTRACT: Contains data structures and prototypes that are used in */
/* HHP API's. */
/* */
/*********************** END OF SPECIFICATIONS ******************************/
#ifndef _HHPHEAP_H_
#define _HHPHEAP_H_
typedef PVOID HHUGEHEAP;
HHUGEHEAP APIENTRY HhpCreateHeap( ULONG uInitSize, USHORT fFlags );
PVOID APIENTRY HhpTAllocMem ( HHUGEHEAP hheap, ULONG cbLen, PSZ pszFile, ULONG uLine);
PVOID APIENTRY HhpIAllocMem ( HHUGEHEAP hheap, ULONG cbLen );
#ifdef MMDEBUG
#define MM_HEAP_DEBUG_VAR "MM_HEAP"
#define HhpAllocMem(u,v) HhpTAllocMem (u, v, (PSZ)__FILE__, (ULONG)__LINE__)
#else
#define HhpAllocMem(u,v) HhpTAllocMem (u, v, (PSZ)NULL, (ULONG)NULL)
#endif
BOOL APIENTRY HhpFreeMem( HHUGEHEAP hheap, PVOID pData );
BOOL APIENTRY HhpDestroyHeap( HHUGEHEAP hheap );
/* Shared Heap Support */
USHORT APIENTRY HhpAccessHeap( HHUGEHEAP hheap, PID pid );
USHORT APIENTRY HhpReleaseHeap( HHUGEHEAP hheap, PID pid );
PID APIENTRY HhpGetPID( VOID );
/* Low-Level Independent (Not Suballocated) Buffer Support */
PBYTE APIENTRY HhpAllocBuffer( ULONG lSize, USHORT fFlags );
USHORT APIENTRY HhpFreeBuffer( PBYTE pBuffer );
USHORT APIENTRY HhpAccessBuffer( PBYTE pBuffer );
#define HH_SHARED 0x1 /* Cause the Heap to be Shared */
USHORT APIENTRY HhpDumpHeap( HHUGEHEAP hheap );
#endif /* _HHPHEAP_H_ */