Paul Gofman : gamingtcui: Add stub for ProcessPendingGameUI().

Alexandre Julliard julliard at winehq.org
Tue May 4 16:23:34 CDT 2021


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

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Mon May  3 19:24:43 2021 +0300

gamingtcui: Add stub for ProcessPendingGameUI().

Based on a patch by Myah Caron.

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 .../api-ms-win-gaming-tcui-l1-1-0.spec             |  2 +-
 dlls/gamingtcui/Makefile.in                        |  5 ++++
 dlls/gamingtcui/gamingtcui.spec                    |  2 +-
 dlls/gamingtcui/gamingtcui_main.c                  | 35 ++++++++++++++++++++++
 include/Makefile.in                                |  1 +
 include/gamingtcui.h                               | 35 ++++++++++++++++++++++
 6 files changed, 78 insertions(+), 2 deletions(-)

diff --git a/dlls/api-ms-win-gaming-tcui-l1-1-0/api-ms-win-gaming-tcui-l1-1-0.spec b/dlls/api-ms-win-gaming-tcui-l1-1-0/api-ms-win-gaming-tcui-l1-1-0.spec
index 586ff6069c9..6b683a963c1 100644
--- a/dlls/api-ms-win-gaming-tcui-l1-1-0/api-ms-win-gaming-tcui-l1-1-0.spec
+++ b/dlls/api-ms-win-gaming-tcui-l1-1-0/api-ms-win-gaming-tcui-l1-1-0.spec
@@ -1,4 +1,4 @@
-@ stub ProcessPendingGameUI
+@ stdcall ProcessPendingGameUI(long) gamingtcui.ProcessPendingGameUI
 @ stub ShowChangeFriendRelationshipUI
 @ stub ShowGameInviteUI
 @ stub ShowPlayerPickerUI
diff --git a/dlls/gamingtcui/Makefile.in b/dlls/gamingtcui/Makefile.in
index e5006486f22..cc89ce1fdb5 100644
--- a/dlls/gamingtcui/Makefile.in
+++ b/dlls/gamingtcui/Makefile.in
@@ -1 +1,6 @@
 MODULE = gamingtcui.dll
+
+EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+	gamingtcui_main.c
diff --git a/dlls/gamingtcui/gamingtcui.spec b/dlls/gamingtcui/gamingtcui.spec
index c455bbb7d54..893c58423e4 100644
--- a/dlls/gamingtcui/gamingtcui.spec
+++ b/dlls/gamingtcui/gamingtcui.spec
@@ -2,7 +2,7 @@
 @ stub CheckGamingPrivilegeSilentlyForUser
 @ stub CheckGamingPrivilegeWithUI
 @ stub CheckGamingPrivilegeWithUIForUser
-@ stub ProcessPendingGameUI
+@ stdcall ProcessPendingGameUI(long)
 @ stub ShowChangeFriendRelationshipUI
 @ stub ShowChangeFriendRelationshipUIForUser
 @ stub ShowCustomizeUserProfileUI
diff --git a/dlls/gamingtcui/gamingtcui_main.c b/dlls/gamingtcui/gamingtcui_main.c
new file mode 100644
index 00000000000..8c371a50ed2
--- /dev/null
+++ b/dlls/gamingtcui/gamingtcui_main.c
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2021 Paul Gofman 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 <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "gamingtcui.h"
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(gamingtcui);
+
+HRESULT WINAPI ProcessPendingGameUI(BOOL wait_for_completion)
+{
+    FIXME("wait_for_completion %#x stub.\n", wait_for_completion);
+
+    return S_OK;
+}
diff --git a/include/Makefile.in b/include/Makefile.in
index 0d9db037ca7..9822bce6bdd 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -301,6 +301,7 @@ SOURCES = \
 	fontsub.h \
 	fusion.idl \
 	gameux.idl \
+	gamingtcui.h \
 	gdiplus.h \
 	gdipluscolor.h \
 	gdipluscolormatrix.h \
diff --git a/include/gamingtcui.h b/include/gamingtcui.h
new file mode 100644
index 00000000000..cf55369d197
--- /dev/null
+++ b/include/gamingtcui.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2021 Paul Gofman 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
+ *
+ */
+
+#ifndef __WINE_GAMINGTCUI_H
+#define __WINE_GAMINGTCUI_H
+
+#include <windows.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+HRESULT WINAPI ProcessPendingGameUI(BOOL wait_for_completion);
+
+#ifdef __cplusplus
+}
+#endif
+#endif




More information about the wine-cvs mailing list