Commit feb88dfe authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

gamingtcui: Add stub for ShowPlayerPickerUI().

Based on a patch by Myah Caron. Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent fb983276
@ stdcall ProcessPendingGameUI(long) gamingtcui.ProcessPendingGameUI
@ stub ShowChangeFriendRelationshipUI
@ stub ShowGameInviteUI
@ stub ShowPlayerPickerUI
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr) gamingtcui.ShowPlayerPickerUI
@ stub ShowProfileCardUI
@ stub ShowTitleAchievementsUI
@ stub TryCancelPendingGameUI
......@@ -15,7 +15,7 @@
@ stub ShowGameInviteUIForUser
@ stub ShowGameInviteUIWithContext
@ stub ShowGameInviteUIWithContextForUser
@ stub ShowPlayerPickerUI
@ stdcall ShowPlayerPickerUI(ptr ptr long ptr long long long ptr ptr)
@ stub ShowPlayerPickerUIForUser
@ stub ShowProfileCardUI
@ stub ShowProfileCardUIForUser
......
......@@ -33,3 +33,18 @@ HRESULT WINAPI ProcessPendingGameUI(BOOL wait_for_completion)
return S_OK;
}
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)
{
FIXME("prompt_display_text %p, xuids %p, xuid_count %lu, preselected_xuids %p, preselected_xuid_count %lu,"
" min_selection_count %lu, max_selection_count %lu, completion_routine %p, context %p semi-stub.\n",
prompt_display_text, xuids, (SIZE_T)xuid_count, preselected_xuids, (SIZE_T)preselected_xuid_count,
(SIZE_T)min_selection_count, (SIZE_T)max_selection_count, completion_routine, context);
if (completion_routine)
completion_routine(S_OK, context, preselected_xuids, preselected_xuid_count);
return S_OK;
}
......@@ -21,13 +21,20 @@
#define __WINE_GAMINGTCUI_H
#include <windows.h>
#include <hstring.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef void (WINAPI *PlayerPickerUICompletionRoutine)(HRESULT return_code, void *context,
const HSTRING *selected_xuids, size_t count);
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);
#ifdef __cplusplus
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment