user32: Convert menu and string table resources to po files.
[wine.git] / dlls / localspl / localspl_private.h
blob952c1f6652dc13bbf06a85432def866d40bad019
1 /*
2 * Implementation of the Local Printmonitor: internal include file
4 * Copyright 2006 Detlef Riekenberg
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.
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.
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_LOCALSPL_PRIVATE__
22 #define __WINE_LOCALSPL_PRIVATE__
24 #include <windef.h>
26 /* ## DLL-wide Globals ## */
27 extern HINSTANCE LOCALSPL_hInstance;
28 void setup_provider(void);
30 /* ## Resource-ID ## */
31 #define IDS_LOCALPORT 500
32 #define IDS_LOCALMONITOR 507
34 /* ## Reserved memorysize for the strings (in WCHAR) ## */
35 #define IDS_LOCALMONITOR_MAXLEN 64
36 #define IDS_LOCALPORT_MAXLEN 32
38 /* ## Type of Ports ## */
39 /* windows types */
40 #define PORT_IS_UNKNOWN 0
41 #define PORT_IS_LPT 1
42 #define PORT_IS_COM 2
43 #define PORT_IS_FILE 3
44 #define PORT_IS_FILENAME 4
46 /* wine extensions */
47 #define PORT_IS_WINE 5
48 #define PORT_IS_UNIXNAME 5
49 #define PORT_IS_PIPE 6
50 #define PORT_IS_CUPS 7
51 #define PORT_IS_LPR 8
54 /* ## Memory allocation functions ## */
56 static inline void * __WINE_ALLOC_SIZE(1) heap_alloc( size_t len )
58 return HeapAlloc( GetProcessHeap(), 0, len );
61 static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero( size_t len )
63 return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, len );
66 static inline void * __WINE_ALLOC_SIZE(2) heap_realloc_zero( void * mem, size_t len )
68 return HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, mem, len );
71 static inline BOOL heap_free( void *mem )
73 return HeapFree( GetProcessHeap(), 0, mem );
77 #endif /* __WINE_LOCALSPL_PRIVATE__ */