Jacek Caban : wshom.ocx: Added new DLL.
Alexandre Julliard
julliard at winehq.org
Wed Aug 3 12:48:13 CDT 2011
Module: wine
Branch: master
Commit: 1c2f066f8633053a8a00288c6ca32c05dfd6c579
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c2f066f8633053a8a00288c6ca32c05dfd6c579
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Aug 3 13:22:54 2011 +0200
wshom.ocx: Added new DLL.
---
configure | 1 +
configure.ac | 1 +
dlls/wshom.ocx/Makefile.in | 6 +++
dlls/wshom.ocx/wshom.ocx.spec | 4 ++
dlls/wshom.ocx/wshom_main.c | 85 +++++++++++++++++++++++++++++++++++++++++
5 files changed, 97 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 7a27706..e2837a8 100755
--- a/configure
+++ b/configure
@@ -15262,6 +15262,7 @@ wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
wine_fn_config_dll wow32 enable_win16 implib
wine_fn_config_dll ws2_32 enable_ws2_32 implib
wine_fn_config_test dlls/ws2_32/tests ws2_32_test
+wine_fn_config_dll wshom.ocx enable_wshom_ocx
wine_fn_config_dll wsock32 enable_wsock32 implib
wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
wine_fn_config_dll wuapi enable_wuapi
diff --git a/configure.ac b/configure.ac
index df7a355..e6bbb2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2876,6 +2876,7 @@ WINE_CONFIG_DLL(wnaspi32,,[implib])
WINE_CONFIG_DLL(wow32,enable_win16,[implib])
WINE_CONFIG_DLL(ws2_32,,[implib])
WINE_CONFIG_TEST(dlls/ws2_32/tests)
+WINE_CONFIG_DLL(wshom.ocx)
WINE_CONFIG_DLL(wsock32,,[implib])
WINE_CONFIG_DLL(wtsapi32,,[implib])
WINE_CONFIG_DLL(wuapi)
diff --git a/dlls/wshom.ocx/Makefile.in b/dlls/wshom.ocx/Makefile.in
new file mode 100644
index 0000000..3692cd9
--- /dev/null
+++ b/dlls/wshom.ocx/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = wshom.ocx
+
+C_SRCS = \
+ wshom_main.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/wshom.ocx/wshom.ocx.spec b/dlls/wshom.ocx/wshom.ocx.spec
new file mode 100644
index 0000000..b16365d
--- /dev/null
+++ b/dlls/wshom.ocx/wshom.ocx.spec
@@ -0,0 +1,4 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
+@ stdcall -private DllRegisterServer()
+@ stdcall -private DllUnregisterServer()
diff --git a/dlls/wshom.ocx/wshom_main.c b/dlls/wshom.ocx/wshom_main.c
new file mode 100644
index 0000000..e9951ec
--- /dev/null
+++ b/dlls/wshom.ocx/wshom_main.c
@@ -0,0 +1,85 @@
+/*
+ * Copyright 2011 Jacek Caban for CodeWeavers
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#define COBJMACROS
+
+#include "windef.h"
+#include "winbase.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(wshom);
+
+/******************************************************************
+ * DllMain (wshom.ocx.@)
+ */
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+ TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpv);
+
+ switch(fdwReason)
+ {
+ case DLL_WINE_PREATTACH:
+ return FALSE; /* prefer native version */
+ case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstDLL);
+ break;
+ }
+
+ return TRUE;
+}
+
+/***********************************************************************
+ * DllGetClassObject (wshom.ocx.@)
+ */
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
+{
+ FIXME("%s %s %p\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
+ return CLASS_E_CLASSNOTAVAILABLE;
+}
+
+/***********************************************************************
+ * DllCanUnloadNow (wshom.ocx.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ FIXME("()\n");
+ return S_FALSE;
+}
+
+/***********************************************************************
+ * DllRegisterServer (wshom.ocx.@)
+ */
+HRESULT WINAPI DllRegisterServer(void)
+{
+ FIXME("()\n");
+ return S_OK;
+}
+
+/***********************************************************************
+ * DllUnregisterServer (wshom.ocx.@)
+ */
+HRESULT WINAPI DllUnregisterServer(void)
+{
+ FIXME("()\n");
+ return S_OK;
+}
More information about the wine-cvs
mailing list