1 /* 2 * MSXML implementation 3 * 4 * Copyright 2010 Alexandre Julliard 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 #define WIN32_NO_STATUS 22 #define _INC_WINDOWS 23 #define COM_NO_WINDOWS_H 24 25 #include <stdarg.h> 26 #include <windef.h> 27 #include <winbase.h> 28 #include <objbase.h> 29 #include <rpcproxy.h> 30 31 static HINSTANCE instance; 32 33 BOOL WINAPI DllMain(HINSTANCE hinstance, DWORD reason, LPVOID reserved) 34 { 35 switch (reason) 36 { 37 case DLL_PROCESS_ATTACH: 38 instance = hinstance; 39 DisableThreadLibraryCalls(hinstance); 40 break; 41 } 42 return TRUE; 43 } 44 45 /*********************************************************************** 46 * DllCanUnloadNow (MSXML.@) 47 */ 48 HRESULT WINAPI DllCanUnloadNow(void) 49 { 50 return S_FALSE; 51 } 52 53 /*********************************************************************** 54 * DllRegisterServer (MSXML.@) 55 */ 56 HRESULT WINAPI DllRegisterServer(void) 57 { 58 return __wine_register_resources( instance ); 59 } 60 61 /*********************************************************************** 62 * DllUnregisterServer (MSXML.@) 63 */ 64 HRESULT WINAPI DllUnregisterServer(void) 65 { 66 return __wine_unregister_resources( instance ); 67 } 68