Annotation of os232sdk/toolkt20/c/samples/spy/allocmem.h, revision 1.1

1.1     ! root        1: /* Heap Manager Interface declarations */
        !             2: 
        !             3: #ifdef INCL_WINHEAP
        !             4: 
        !             5: #ifndef INCL_SAADEFS
        !             6: typedef LHANDLE HHEAP;
        !             7: 
        !             8: /*
        !             9: ** These are declarations for local routines that take the place
        !            10: ** of routines not extant in the 32-bit PM APIs.  It was easier to
        !            11: ** write substitutes than change all the code that uses them
        !            12: */
        !            13: HHEAP WinCreateHeap(PBYTE pbHeapBase, ULONG cbHeap, ULONG cbGrow,
        !            14:         ULONG chMinDed, ULONG cbMaxDed, ULONG fOptions);
        !            15: HHEAP WinDestroyHeap(HHEAP hHeap);
        !            16: ULONG WinAvailMem(HHEAP hHeap, BOOL fCompact, ULONG cbMinFree);
        !            17: PBYTE WinAllocMem(HHEAP hHeap, ULONG cb);
        !            18: PBYTE WinReallocMem(HHEAP hHeap, PBYTE pMem, ULONG cbOld, ULONG cbNew);
        !            19: PBYTE WinFreeMem(HHEAP hHeap, PBYTE pMem, ULONG cbMem);
        !            20: PVOID WinLockHeap(HHEAP hHeap);
        !            21: 
        !            22: #define HM_MOVEABLE                0x0001      /* Parameters to WinCreateHeap */
        !            23: #define HM_VALIDSIZE               0x0002
        !            24: #endif /* !INCL_SAADEFS */
        !            25: 
        !            26: #define MEMFLAGS    (PAG_COMMIT | PAG_READ | PAG_WRITE)
        !            27: 
        !            28: #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.