Jacek Caban : msident: Added stub DLL.
Alexandre Julliard
julliard at winehq.org
Fri Mar 9 12:34:20 CST 2012
Module: wine
Branch: master
Commit: aadc5cb6de4c13bed8d40cc16bc94fb8a8719cda
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aadc5cb6de4c13bed8d40cc16bc94fb8a8719cda
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Mar 9 11:12:25 2012 +0100
msident: Added stub DLL.
---
configure | 1 +
configure.ac | 1 +
dlls/msident/Makefile.in | 6 ++++
dlls/msident/msident.c | 61 +++++++++++++++++++++++++++++++++++++++++++++
dlls/msident/msident.spec | 2 +
5 files changed, 71 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 55464c7..e7d691d 100755
--- a/configure
+++ b/configure
@@ -15150,6 +15150,7 @@ wine_fn_config_dll mshtml enable_mshtml implib,po
wine_fn_config_test dlls/mshtml/tests mshtml_test
wine_fn_config_dll msi enable_msi implib,po
wine_fn_config_test dlls/msi/tests msi_test
+wine_fn_config_dll msident enable_msident
wine_fn_config_dll msimg32 enable_msimg32 implib
wine_fn_config_dll msimsg enable_msimsg
wine_fn_config_dll msimtf enable_msimtf
diff --git a/configure.ac b/configure.ac
index 357c829..3fd320e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2659,6 +2659,7 @@ WINE_CONFIG_DLL(mshtml,,[implib,po])
WINE_CONFIG_TEST(dlls/mshtml/tests)
WINE_CONFIG_DLL(msi,,[implib,po])
WINE_CONFIG_TEST(dlls/msi/tests)
+WINE_CONFIG_DLL(msident)
WINE_CONFIG_DLL(msimg32,,[implib])
WINE_CONFIG_DLL(msimsg)
WINE_CONFIG_DLL(msimtf)
diff --git a/dlls/msident/Makefile.in b/dlls/msident/Makefile.in
new file mode 100644
index 0000000..e52a4c8
--- /dev/null
+++ b/dlls/msident/Makefile.in
@@ -0,0 +1,6 @@
+MODULE = msident.dll
+
+C_SRCS = \
+ msident.c
+
+ at MAKE_DLL_RULES@
diff --git a/dlls/msident/msident.c b/dlls/msident/msident.c
new file mode 100644
index 0000000..d6c9935
--- /dev/null
+++ b/dlls/msident/msident.c
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2012 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
+ */
+
+#define COBJMACROS
+
+#include "windows.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(msident);
+
+/******************************************************************
+ * DllMain (msident.@)
+ */
+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 (msident.@)
+ */
+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 (msident.@)
+ */
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+ return S_FALSE;
+}
diff --git a/dlls/msident/msident.spec b/dlls/msident/msident.spec
new file mode 100644
index 0000000..079117d
--- /dev/null
+++ b/dlls/msident/msident.spec
@@ -0,0 +1,2 @@
+@ stdcall -private DllCanUnloadNow()
+@ stdcall -private DllGetClassObject(ptr ptr ptr)
More information about the wine-cvs
mailing list