[PATCH] gamingtcui: Add stub for ShowProfileCardUI().
Paul Gofman
pgofman at codeweavers.com
Wed May 5 10:14:22 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 | 11 +++++++++++
include/gamingtcui.h | 2 ++
4 files changed, 15 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 b019595c502..d7fa8a12e75 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
@@ -2,6 +2,6 @@
@ stub ShowChangeFriendRelationshipUI
@ stub ShowGameInviteUI
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr) gamingtcui.ShowPlayerPickerUI
-@ stub ShowProfileCardUI
+@ stdcall ShowProfileCardUI(ptr ptr ptr) gamingtcui.ShowProfileCardUI
@ stub ShowTitleAchievementsUI
@ stub TryCancelPendingGameUI
diff --git a/dlls/gamingtcui/gamingtcui.spec b/dlls/gamingtcui/gamingtcui.spec
index 32c8496f657..a0c2d52ad74 100644
--- a/dlls/gamingtcui/gamingtcui.spec
+++ b/dlls/gamingtcui/gamingtcui.spec
@@ -17,7 +17,7 @@
@ stub ShowGameInviteUIWithContextForUser
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr)
@ stub ShowPlayerPickerUIForUser
-@ stub ShowProfileCardUI
+@ stdcall ShowProfileCardUI(ptr ptr ptr)
@ stub ShowProfileCardUIForUser
@ stub ShowTitleAchievementsUI
@ stub ShowTitleAchievementsUIForUser
diff --git a/dlls/gamingtcui/gamingtcui_main.c b/dlls/gamingtcui/gamingtcui_main.c
index a3e2855a0f8..555b6d781d3 100644
--- a/dlls/gamingtcui/gamingtcui_main.c
+++ b/dlls/gamingtcui/gamingtcui_main.c
@@ -48,3 +48,14 @@ HRESULT WINAPI ShowPlayerPickerUI(HSTRING prompt_display_text, const HSTRING *xu
return S_OK;
}
+
+HRESULT WINAPI ShowProfileCardUI(HSTRING target_user_xuid, GameUICompletionRoutine completion_routine, void *context)
+{
+ FIXME("target_user_xuid %p, completion_routine %p, context %p stub.\n",
+ target_user_xuid, completion_routine, context);
+
+ if (completion_routine)
+ completion_routine(S_OK, context);
+
+ return S_OK;
+}
diff --git a/include/gamingtcui.h b/include/gamingtcui.h
index 99e8d85b2e8..87aa5f5efa1 100644
--- a/include/gamingtcui.h
+++ b/include/gamingtcui.h
@@ -28,6 +28,7 @@ extern "C"
{
#endif
+typedef void (WINAPI *GameUICompletionRoutine)(HRESULT return_code, void *context);
typedef void (WINAPI *PlayerPickerUICompletionRoutine)(HRESULT return_code, void *context,
const HSTRING *selected_xuids, size_t count);
@@ -35,6 +36,7 @@ HRESULT WINAPI ProcessPendingGameUI(BOOL wait_for_completion);
HRESULT WINAPI ShowPlayerPickerUI(HSTRING prompt_display_text, const HSTRING *xuids, size_t xuid_count,
const HSTRING *preselected_xuids, size_t preselected_xuid_count, size_t min_selection_count,
size_t max_selection_count, PlayerPickerUICompletionRoutine completion_routine, void *context);
+HRESULT WINAPI ShowProfileCardUI(HSTRING target_user_xuid, GameUICompletionRoutine completion_routine, void *context);
#ifdef __cplusplus
}
--
2.31.1
More information about the wine-devel
mailing list