Stefan Leichter : ksuser: New stub dll.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Oct 7 14:49:56 CDT 2014


Module: wine
Branch: master
Commit: ee19362f9ad47af52f8730f6cbf3cfc6454ee417
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ee19362f9ad47af52f8730f6cbf3cfc6454ee417

Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date:   Sat Oct  4 11:38:57 2014 +0200

ksuser: New stub dll.

---

 configure               |  2 ++
 configure.ac            |  1 +
 dlls/ksuser/Makefile.in |  4 ++++
 dlls/ksuser/ksuser.spec |  4 ++++
 dlls/ksuser/main.c      | 38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 49 insertions(+)

diff --git a/configure b/configure
index 2a6de7a..4125ac9 100755
--- a/configure
+++ b/configure
@@ -1068,6 +1068,7 @@ enable_joy_cpl
 enable_jscript
 enable_jsproxy
 enable_kernel32
+enable_ksuser
 enable_ktmw32
 enable_loadperf
 enable_localspl
@@ -17034,6 +17035,7 @@ wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
 wine_fn_config_test dlls/kernel32/tests kernel32_test
 wine_fn_config_dll keyboard.drv16 enable_win16
 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
+wine_fn_config_dll ksuser enable_ksuser
 wine_fn_config_dll ktmw32 enable_ktmw32
 wine_fn_config_dll loadperf enable_loadperf implib
 wine_fn_config_dll localspl enable_localspl po
diff --git a/configure.ac b/configure.ac
index f1f721d..6a3dc46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2943,6 +2943,7 @@ WINE_CONFIG_DLL(kernel32,,[clean,implib,mc])
 WINE_CONFIG_TEST(dlls/kernel32/tests)
 WINE_CONFIG_DLL(keyboard.drv16,enable_win16)
 WINE_CONFIG_DLL(krnl386.exe16,enable_win16,[implib],[kernel])
+WINE_CONFIG_DLL(ksuser)
 WINE_CONFIG_DLL(ktmw32)
 WINE_CONFIG_DLL(loadperf,,[implib])
 WINE_CONFIG_DLL(localspl,,[po])
diff --git a/dlls/ksuser/Makefile.in b/dlls/ksuser/Makefile.in
new file mode 100644
index 0000000..1945a19
--- /dev/null
+++ b/dlls/ksuser/Makefile.in
@@ -0,0 +1,4 @@
+MODULE    = ksuser.dll
+
+C_SRCS = \
+	main.c
diff --git a/dlls/ksuser/ksuser.spec b/dlls/ksuser/ksuser.spec
new file mode 100644
index 0000000..51b84d2
--- /dev/null
+++ b/dlls/ksuser/ksuser.spec
@@ -0,0 +1,4 @@
+@ stub KsCreateAllocator
+@ stub KsCreateClock
+@ stub KsCreatePin
+@ stub KsCreateTopologyNode
diff --git a/dlls/ksuser/main.c b/dlls/ksuser/main.c
new file mode 100644
index 0000000..f8cb426
--- /dev/null
+++ b/dlls/ksuser/main.c
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2014 Stefan Leichter
+ *
+ * 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>
+#include "windef.h"
+#include "winbase.h"
+
+static HINSTANCE instance;
+
+BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
+{
+    switch (reason)
+    {
+        case DLL_WINE_PREATTACH:
+            return FALSE;    /* prefer native version */
+        case DLL_PROCESS_ATTACH:
+            instance = hinst;
+            DisableThreadLibraryCalls( hinst );
+            break;
+    }
+    return TRUE;
+}




More information about the wine-cvs mailing list