1 /*
2 * Implementation of the Local Printmonitor: internal include file
3 *
4 * Copyright 2006 Detlef Riekenberg
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21 #ifndef __WINE_LOCALSPL_PRIVATE__
22 #define __WINE_LOCALSPL_PRIVATE__
23
24
25 /* ## DLL-wide Globals ## */
26 extern HINSTANCE LOCALSPL_hInstance;
27
28 /* ## Resource-ID ## */
29 #define IDS_LOCALPORT 500
30 #define IDS_LOCALMONITOR 507
31
32 /* ## Reserved memorysize for the strings (in WCHAR) ## */
33 #define IDS_LOCALMONITOR_MAXLEN 64
34 #define IDS_LOCALPORT_MAXLEN 32
35
36 /* ## Type of Ports ## */
37 /* windows types */
38 #define PORT_IS_UNKNOWN 0
39 #define PORT_IS_LPT 1
40 #define PORT_IS_COM 2
41 #define PORT_IS_FILE 3
42 #define PORT_IS_FILENAME 4
43
44 /* wine extensions */
45 #define PORT_IS_WINE 5
46 #define PORT_IS_UNIXNAME 5
47 #define PORT_IS_PIPE 6
48 #define PORT_IS_CUPS 7
49 #define PORT_IS_LPR 8
50
51
52 /* ## Memory allocation functions ## */
53
54 static inline void * __WINE_ALLOC_SIZE(1) heap_alloc( size_t len )
55 {
56 return HeapAlloc( GetProcessHeap(), 0, len );
57 }
58
59 static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero( size_t len )
60 {
61 return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, len );
62 }
63
64 static inline BOOL heap_free( void *mem )
65 {
66 return HeapFree( GetProcessHeap(), 0, mem );
67 }
68
69
70 #endif /* __WINE_LOCALSPL_PRIVATE__ */
71
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.