2 * Copyright 2011 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
30 #include "wine/debug.h"
32 WINE_DEFAULT_DEBUG_CHANNEL(wshom);
34 static HINSTANCE wshom_instance;
36 /******************************************************************
37 * DllMain (wshom.ocx.@)
39 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
41 TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
45 case DLL_WINE_PREATTACH:
46 return FALSE; /* prefer native version */
47 case DLL_PROCESS_ATTACH:
48 wshom_instance = hInstDLL;
49 DisableThreadLibraryCalls(wshom_instance);
56 /***********************************************************************
57 * DllGetClassObject (wshom.ocx.@)
59 HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
61 FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
62 return CLASS_E_CLASSNOTAVAILABLE;
65 /***********************************************************************
66 * DllCanUnloadNow (wshom.ocx.@)
68 HRESULT WINAPI DllCanUnloadNow(void)
74 /***********************************************************************
75 * DllRegisterServer (wshom.ocx.@)
77 HRESULT WINAPI DllRegisterServer(void)
80 return __wine_register_resources(wshom_instance);
83 /***********************************************************************
84 * DllUnregisterServer (wshom.ocx.@)
86 HRESULT WINAPI DllUnregisterServer(void)
89 return __wine_unregister_resources(wshom_instance);