File:  [OS/2 SDKs] / os232sdk / toolkt20 / c / samples / spy / allocmem.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:30 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1990, HEAD
Microsoft OS/2 SDK 2.0 05-30-1990

/* Heap Manager Interface declarations */

#ifdef INCL_WINHEAP

#ifndef INCL_SAADEFS
typedef LHANDLE HHEAP;

/*
** These are declarations for local routines that take the place
** of routines not extant in the 32-bit PM APIs.  It was easier to
** write substitutes than change all the code that uses them
*/
HHEAP WinCreateHeap(PBYTE pbHeapBase, ULONG cbHeap, ULONG cbGrow,
        ULONG chMinDed, ULONG cbMaxDed, ULONG fOptions);
HHEAP WinDestroyHeap(HHEAP hHeap);
ULONG WinAvailMem(HHEAP hHeap, BOOL fCompact, ULONG cbMinFree);
PBYTE WinAllocMem(HHEAP hHeap, ULONG cb);
PBYTE WinReallocMem(HHEAP hHeap, PBYTE pMem, ULONG cbOld, ULONG cbNew);
PBYTE WinFreeMem(HHEAP hHeap, PBYTE pMem, ULONG cbMem);
PVOID WinLockHeap(HHEAP hHeap);

#define HM_MOVEABLE                0x0001      /* Parameters to WinCreateHeap */
#define HM_VALIDSIZE               0x0002
#endif /* !INCL_SAADEFS */

#define MEMFLAGS    (PAG_COMMIT | PAG_READ | PAG_WRITE)

#endif  /* INCL_WINHEAP */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.