gamingtcui: Add stub for ShowProfileCardUI().

Based on a patch by Myah Caron.

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2021-05-05 18:14:22 +03:00 committed by Alexandre Julliard
parent 6eaf494fac
commit 8a7dc45476
4 changed files with 15 additions and 2 deletions

View file

@ -2,6 +2,6 @@
@ stub ShowChangeFriendRelationshipUI @ stub ShowChangeFriendRelationshipUI
@ stub ShowGameInviteUI @ stub ShowGameInviteUI
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr) gamingtcui.ShowPlayerPickerUI @ 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 ShowTitleAchievementsUI
@ stub TryCancelPendingGameUI @ stub TryCancelPendingGameUI

View file

@ -17,7 +17,7 @@
@ stub ShowGameInviteUIWithContextForUser @ stub ShowGameInviteUIWithContextForUser
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr) @ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr)
@ stub ShowPlayerPickerUIForUser @ stub ShowPlayerPickerUIForUser
@ stub ShowProfileCardUI @ stdcall ShowProfileCardUI(ptr ptr ptr)
@ stub ShowProfileCardUIForUser @ stub ShowProfileCardUIForUser
@ stub ShowTitleAchievementsUI @ stub ShowTitleAchievementsUI
@ stub ShowTitleAchievementsUIForUser @ stub ShowTitleAchievementsUIForUser

View file

@ -48,3 +48,14 @@ HRESULT WINAPI ShowPlayerPickerUI(HSTRING prompt_display_text, const HSTRING *xu
return S_OK; 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;
}

View file

@ -28,6 +28,7 @@ extern "C"
{ {
#endif #endif
typedef void (WINAPI *GameUICompletionRoutine)(HRESULT return_code, void *context);
typedef void (WINAPI *PlayerPickerUICompletionRoutine)(HRESULT return_code, void *context, typedef void (WINAPI *PlayerPickerUICompletionRoutine)(HRESULT return_code, void *context,
const HSTRING *selected_xuids, size_t count); 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, 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, const HSTRING *preselected_xuids, size_t preselected_xuid_count, size_t min_selection_count,
size_t max_selection_count, PlayerPickerUICompletionRoutine completion_routine, void *context); size_t max_selection_count, PlayerPickerUICompletionRoutine completion_routine, void *context);
HRESULT WINAPI ShowProfileCardUI(HSTRING target_user_xuid, GameUICompletionRoutine completion_routine, void *context);
#ifdef __cplusplus #ifdef __cplusplus
} }