Alexandre Julliard | e2abbb1 | 1995-03-19 17:39:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Local heap declarations |
| 3 | * |
| 4 | * Copyright 1995 Alexandre Julliard |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 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 |
Alexandre Julliard | e2abbb1 | 1995-03-19 17:39:39 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
Alexandre Julliard | fa68b75 | 1995-04-03 16:55:37 +0000 | [diff] [blame] | 21 | #ifndef __WINE_LOCAL_H |
| 22 | #define __WINE_LOCAL_H |
Alexandre Julliard | e2abbb1 | 1995-03-19 17:39:39 +0000 | [diff] [blame] | 23 | |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 24 | #include "windef.h" |
Alexandre Julliard | 83f52d1 | 2000-09-26 22:20:14 +0000 | [diff] [blame] | 25 | #include "wine/windef16.h" |
Alexandre Julliard | e2abbb1 | 1995-03-19 17:39:39 +0000 | [diff] [blame] | 26 | |
| 27 | /* These function are equivalent to the Local* API functions, */ |
| 28 | /* excepted that they need DS as the first parameter. This */ |
| 29 | /* allows managing several heaps from the emulation library. */ |
| 30 | |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 31 | extern HLOCAL16 LOCAL_Alloc( HANDLE16 ds, UINT16 flags, WORD size ); |
| 32 | extern HLOCAL16 LOCAL_ReAlloc( HANDLE16 ds, HLOCAL16 handle, |
| 33 | WORD size, UINT16 flags ); |
| 34 | extern HLOCAL16 LOCAL_Free( HANDLE16 ds, HLOCAL16 handle ); |
| 35 | extern HLOCAL16 LOCAL_Handle( HANDLE16 ds, WORD addr ); |
| 36 | extern UINT16 LOCAL_Size( HANDLE16 ds, HLOCAL16 handle ); |
| 37 | extern UINT16 LOCAL_Flags( HANDLE16 ds, HLOCAL16 handle ); |
| 38 | extern UINT16 LOCAL_HeapSize( HANDLE16 ds ); |
| 39 | extern UINT16 LOCAL_CountFree( HANDLE16 ds ); |
Alexandre Julliard | 16e92eb | 2000-10-29 01:23:19 +0000 | [diff] [blame] | 40 | extern void *LOCAL_Lock( HANDLE16 ds, HLOCAL16 handle ); |
Alexandre Julliard | 3051b64 | 1996-07-05 17:14:13 +0000 | [diff] [blame] | 41 | extern BOOL16 LOCAL_Unlock( HANDLE16 ds, HLOCAL16 handle ); |
Alexandre Julliard | 03468f7 | 1998-02-15 19:40:49 +0000 | [diff] [blame] | 42 | extern WORD LOCAL_Compact( HANDLE16 ds, UINT16 minfree, UINT16 flags ); |
Alexandre Julliard | e2abbb1 | 1995-03-19 17:39:39 +0000 | [diff] [blame] | 43 | |
Alexandre Julliard | fa68b75 | 1995-04-03 16:55:37 +0000 | [diff] [blame] | 44 | #endif /* __WINE_LOCAL_H */ |