Skip to main content

XUserAddByIdWithUiResult

擷取 XUserAddByIdWithUiAysnc 所建立之使用者的控制代碼。 此函式只應用於回應遊戲邀請。

語法

參數

async   _Inout_
類型:XAsyncBlock*
先前傳送給 XUserAddByIdWithUiAysnc 的 XAsyncBlock。 newUser   _Out_
類型:XUserHandle*
包含新使用者的控制代碼。

傳回值

類型:HRESULT HRESULT 成功或錯誤碼。 如需錯誤碼清單,請參閱錯誤碼。

備註

如需如何使用此函式的詳細資訊,請參閱 XUserAddByIdWithUiAysnc。

需求

標頭: XUser.h 程式庫: xgameruntime.lib 支援的平台: Windows、Steam Deck、XBOX One 系列主機和 XBOX Series 主機

另請參閱

XUser
XUserCloseHandle
Last modified on October 6, 2026