Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlocalspl_private.h
Go to the documentation of this file.
00001 /* 00002 * Implementation of the Local Printmonitor: internal include file 00003 * 00004 * Copyright 2006 Detlef Riekenberg 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 */ 00020 00021 #ifndef __WINE_LOCALSPL_PRIVATE__ 00022 #define __WINE_LOCALSPL_PRIVATE__ 00023 00024 #include <windef.h> 00025 00026 /* ## DLL-wide Globals ## */ 00027 extern HINSTANCE LOCALSPL_hInstance; 00028 void setup_provider(void); 00029 00030 /* ## Resource-ID ## */ 00031 #define IDS_LOCALPORT 500 00032 #define IDS_LOCALMONITOR 507 00033 00034 /* ## Reserved memorysize for the strings (in WCHAR) ## */ 00035 #define IDS_LOCALMONITOR_MAXLEN 64 00036 #define IDS_LOCALPORT_MAXLEN 32 00037 00038 /* ## Type of Ports ## */ 00039 /* windows types */ 00040 #define PORT_IS_UNKNOWN 0 00041 #define PORT_IS_LPT 1 00042 #define PORT_IS_COM 2 00043 #define PORT_IS_FILE 3 00044 #define PORT_IS_FILENAME 4 00045 00046 /* wine extensions */ 00047 #define PORT_IS_WINE 5 00048 #define PORT_IS_UNIXNAME 5 00049 #define PORT_IS_PIPE 6 00050 #define PORT_IS_CUPS 7 00051 #define PORT_IS_LPR 8 00052 00053 00054 /* ## Memory allocation functions ## */ 00055 00056 static inline void * __WINE_ALLOC_SIZE(1) heap_alloc( size_t len ) 00057 { 00058 return HeapAlloc( GetProcessHeap(), 0, len ); 00059 } 00060 00061 static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero( size_t len ) 00062 { 00063 return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, len ); 00064 } 00065 00066 static inline void * __WINE_ALLOC_SIZE(2) heap_realloc_zero( void * mem, size_t len ) 00067 { 00068 return HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, mem, len ); 00069 } 00070 00071 static inline BOOL heap_free( void *mem ) 00072 { 00073 return HeapFree( GetProcessHeap(), 0, mem ); 00074 } 00075 00076 00077 #endif /* __WINE_LOCALSPL_PRIVATE__ */ Generated on Sat May 26 2012 04:23:09 for ReactOS by
1.7.6.1
|