gamingtcui: Add stub for ShowPlayerPickerUI().
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:
parent
fb983276f7
commit
feb88dfedb
|
@ -1,7 +1,7 @@
|
|||
@ 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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue