From b3a9ce44327bae77dbe3c5e3facaefcb40696834 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mariusz=20Pluci=C5=84ski?= <vshader@gmail.com>
Date: Thu, 22 Jul 2010 23:59:34 +0200
Subject: [PATCH] gameux: Add gameux.dll library stub.

---
 configure               |  1 +
 configure.ac            |  1 +
 dlls/gameux/Makefile.in | 13 ++++++++++
 dlls/gameux/gameux.spec |  5 ++++
 dlls/gameux/main.c      | 57 +++++++++++++++++++++++++++++++++++++++++
 dlls/gameux/version.rc  | 29 +++++++++++++++++++++
 6 files changed, 106 insertions(+)
 create mode 100644 dlls/gameux/Makefile.in
 create mode 100644 dlls/gameux/gameux.spec
 create mode 100644 dlls/gameux/main.c
 create mode 100644 dlls/gameux/version.rc

diff --git a/configure b/configure
index ead05fb8081..925df236faf 100755
--- a/configure
+++ b/configure
@@ -14507,6 +14507,7 @@ wine_fn_config_dll fltlib enable_fltlib
 wine_fn_config_dll fusion enable_fusion
 wine_fn_config_test dlls/fusion/tests fusion_test
 wine_fn_config_dll fwpuclnt enable_fwpuclnt
+wine_fn_config_dll gameux enable_gameux
 wine_fn_config_dll gdi.exe16 enable_win16
 wine_fn_config_dll gdi32 enable_gdi32 gdi32
 wine_fn_config_test dlls/gdi32/tests gdi32_test
diff --git a/configure.ac b/configure.ac
index a3a6c6754ea..2888d1e117e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2363,6 +2363,7 @@ WINE_CONFIG_DLL(fltlib)
 WINE_CONFIG_DLL(fusion)
 WINE_CONFIG_TEST(dlls/fusion/tests)
 WINE_CONFIG_DLL(fwpuclnt)
+WINE_CONFIG_DLL(gameux)
 WINE_CONFIG_DLL(gdi.exe16,enable_win16)
 WINE_CONFIG_DLL(gdi32,,[gdi32])
 WINE_CONFIG_TEST(dlls/gdi32/tests)
diff --git a/dlls/gameux/Makefile.in b/dlls/gameux/Makefile.in
new file mode 100644
index 00000000000..d26a8abaf94
--- /dev/null
+++ b/dlls/gameux/Makefile.in
@@ -0,0 +1,13 @@
+EXTRADEFS = -DCOM_NO_WINDOWS_H
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = gameux.dll
+
+C_SRCS = \
+	main.c
+
+RC_SRCS = version.rc
+
+@MAKE_DLL_RULES@
diff --git a/dlls/gameux/gameux.spec b/dlls/gameux/gameux.spec
new file mode 100644
index 00000000000..1c89098e984
--- /dev/null
+++ b/dlls/gameux/gameux.spec
@@ -0,0 +1,5 @@
+@ stub GameUxShimW
+@ stdcall -private DllCanUnloadNow()
+@ stub DllGetClassObject
+@ stub DllRegisterServer
+@ stub DllUnregisterServer
diff --git a/dlls/gameux/main.c b/dlls/gameux/main.c
new file mode 100644
index 00000000000..205d48ef87f
--- /dev/null
+++ b/dlls/gameux/main.c
@@ -0,0 +1,57 @@
+/*
+ *    Gameux library main file
+ *
+ * Copyright (C) 2010 Mariusz Pluciński
+ *
+ * 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"
+
+#define COBJMACROS
+
+#include <stdarg.h>
+#include "windef.h"
+#include "winbase.h"
+
+#include "ole2.h"
+#include "shobjidl.h"
+#include "initguid.h"
+#include "gameux.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(gameux);
+
+HRESULT WINAPI DllCanUnloadNow(void)
+{
+    FIXME("stub\n");
+    return S_FALSE;
+}
+
+BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+{
+    TRACE("(%p, %d, %p)\n", hInstDLL, fdwReason, lpv);
+
+    switch(fdwReason)
+    {
+    case DLL_PROCESS_ATTACH:
+        DisableThreadLibraryCalls(hInstDLL);
+        break;
+    case DLL_PROCESS_DETACH:
+        break;
+    }
+    return TRUE;
+}
diff --git a/dlls/gameux/version.rc b/dlls/gameux/version.rc
new file mode 100644
index 00000000000..a63716396d7
--- /dev/null
+++ b/dlls/gameux/version.rc
@@ -0,0 +1,29 @@
+/*
+ *    Gameux library version resource
+ *
+ * Copyright (C) 2010 Mariusz Pluciński
+ *
+ * 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 WINE_OLESELFREGISTER
+#define WINE_FILEDESCRIPTION_STR "Wine Games Explorer"
+#define WINE_FILENAME_STR "gameux.dll"
+#define WINE_FILEVERSION 6,1,7600,16385
+#define WINE_FILEVERSION_STR "6.1.7600.16385"
+#define WINE_PRODUCTVERSION 6,1,7600,16385
+#define WINE_PRODUCTVERSION_STR "6.1.7600.16385"
+
+#include "wine/wine_common_ver.rc"
-- 
GitLab