[PATCH 2/4] gamingtcui: Add stub for ProcessPendingGameUI().

Paul Gofman pgofman at codeweavers.com
Mon May 3 07:31:02 CDT 2021


Based on a patch by Myah Caron.

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
 .../api-ms-win-gaming-tcui-l1-1-0.spec        |  2 +-
 dlls/gamingtcui/gamingtcui.spec               |  2 +-
 dlls/gamingtcui/gamingtcui_main.c             |  8 +++++
 include/gamingtcui.h                          | 35 +++++++++++++++++++
 4 files changed, 45 insertions(+), 2 deletions(-)
 create mode 100644 include/gamingtcui.h

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/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
index 0a9df713637..1747495bfce 100644
--- a/dlls/gamingtcui/gamingtcui_main.c
+++ b/dlls/gamingtcui/gamingtcui_main.c
@@ -21,6 +21,7 @@
 
 #include "windef.h"
 #include "winbase.h"
+#include "gamingtcui.h"
 
 #include "wine/debug.h"
 
@@ -39,3 +40,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID lpvReserved)
 
     return TRUE;
 }
+
+HRESULT WINAPI ProcessPendingGameUI(BOOL wait_for_completion)
+{
+    FIXME("wait_for_completion %#x stub.\n", wait_for_completion);
+
+    return S_OK;
+}
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
-- 
2.31.1




More information about the wine-devel mailing list