local.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Local heap declarations
  3. *
  4. * Copyright 1995 Alexandre Julliard
  5. *
  6. * This library is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 2.1 of the License, or (at your option) any later version.
  10. *
  11. * This library is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public
  17. * License along with this library; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #ifndef __WINE_LOCAL_H
  21. #define __WINE_LOCAL_H
  22. #include <windef.h>
  23. #include <wine/windef16.h>
  24. /* These function are equivalent to the Local* API functions, */
  25. /* excepted that they need DS as the first parameter. This */
  26. /* allows managing several heaps from the emulation library. */
  27. extern HLOCAL16 LOCAL_Alloc( HANDLE16 ds, UINT16 flags, WORD size );
  28. extern HLOCAL16 LOCAL_ReAlloc( HANDLE16 ds, HLOCAL16 handle,
  29. WORD size, UINT16 flags );
  30. extern HLOCAL16 LOCAL_Free( HANDLE16 ds, HLOCAL16 handle );
  31. extern HLOCAL16 LOCAL_Handle( HANDLE16 ds, WORD addr );
  32. extern UINT16 LOCAL_Size( HANDLE16 ds, HLOCAL16 handle );
  33. extern UINT16 LOCAL_Flags( HANDLE16 ds, HLOCAL16 handle );
  34. extern UINT16 LOCAL_HeapSize( HANDLE16 ds );
  35. extern UINT16 LOCAL_CountFree( HANDLE16 ds );
  36. extern void *LOCAL_Lock( HANDLE16 ds, HLOCAL16 handle );
  37. extern BOOL16 LOCAL_Unlock( HANDLE16 ds, HLOCAL16 handle );
  38. extern WORD LOCAL_Compact( HANDLE16 ds, UINT16 minfree, UINT16 flags );
  39. #endif /* __WINE_LOCAL_H */