Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlocalspl_main.c
Go to the documentation of this file.
00001 /* 00002 * Implementation of the Local Printprovider/ Printmonitor/ Prontprocessor 00003 * 00004 * Copyright 2006-2009 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 #include <stdarg.h> 00022 00023 #define COBJMACROS 00024 #define NONAMELESSUNION 00025 00026 #include "windef.h" 00027 #include "winbase.h" 00028 00029 #include "wine/debug.h" 00030 #include "localspl_private.h" 00031 00032 WINE_DEFAULT_DEBUG_CHANNEL(localspl); 00033 00034 00035 HINSTANCE LOCALSPL_hInstance = NULL; 00036 00037 /***************************************************** 00038 * DllMain 00039 */ 00040 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 00041 { 00042 TRACE("(%p, %d, %p)\n",hinstDLL, fdwReason, lpvReserved); 00043 00044 switch(fdwReason) 00045 { 00046 case DLL_WINE_PREATTACH: 00047 return FALSE; /* prefer native version */ 00048 00049 case DLL_PROCESS_ATTACH: 00050 DisableThreadLibraryCalls( hinstDLL ); 00051 LOCALSPL_hInstance = hinstDLL; 00052 setup_provider(); 00053 break; 00054 } 00055 return TRUE; 00056 } Generated on Sun May 27 2012 04:24:36 for ReactOS by
1.7.6.1
|