Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.3 KiB

  1. #ifndef H__wwheap
  2. #define H__wwheap
  3. typedef LONG WHMEM;
  4. typedef LONG HPFIXUP;
  5. typedef WHMEM FAR *LPWHMEM;
  6. typedef LONG HHEAP;
  7. HHEAP FAR PASCAL HeapInit( void );
  8. BOOL FAR PASCAL HeapRelease( HHEAP hHeap );
  9. WHMEM FAR PASCAL HeapAlloc( HHEAP hHeap, WORD wFlags, DWORD dwSize );
  10. WHMEM FAR PASCAL HeapReAlloc( HHEAP hHeap, WHMEM whMem,
  11. DWORD dwSize, WORD wFlags);
  12. LPVOID FAR PASCAL HeapLock( HHEAP hHeap, WHMEM whMem );
  13. #define HeapUnlock( hHeap, whMem ) // do nothing
  14. VOID FAR PASCAL HeapFree( HHEAP hHeap, WHMEM whMem );
  15. LONG FAR PASCAL HeapSize( HHEAP hHeap, WHMEM whMem );
  16. LPVOID FAR PASCAL HeapAllocPtr( HHEAP hHeap, WORD wFlags, DWORD dwSize );
  17. VOID FAR PASCAL HeapFreePtr( LPVOID lpPtr );
  18. LPVOID FAR PASCAL HeapReAllocPtr( LPVOID lpPtr, WORD wFlags, DWORD dwSize );
  19. VOID FAR PASCAL HeapSetFirstFit( HHEAP hHeap );
  20. VOID FAR PASCAL HeapSetBestFit( HHEAP hHeap );
  21. VOID FAR PASCAL HeapSetAllocOnly( HHEAP hHeap );
  22. // internal use only from here on
  23. HHEAP FAR PASCAL HeapRead( int fd );
  24. BOOL FAR PASCAL HeapWrite( int fd, HHEAP hHeap );
  25. BOOL FAR PASCAL HeapDoneAllocating( HHEAP hHeap );
  26. BOOL FAR PASCAL HeapFixup( LPVOID lpFixup );
  27. VOID FAR PASCAL HeapFreeFixups( HHEAP hHeap );
  28. HPFIXUP FAR PASCAL HeapGetFixupInfo( HHEAP hHeap, LPVOID lpPointer );
  29. LPVOID FAR PASCAL HeapGetPtrFixed( HHEAP hHeap, HPFIXUP hpFixup );
  30. #endif