Skip to main content

XblSocialGetSocialRelationshipsAsync

取得與呼叫者有社交關聯的人員清單。

語法

參數

xboxLiveContext   _In_
類型:XblContextHandle
使用 XblContextCreateHandle 建立的 Xbox Live 內容控制代碼。 xboxUserId   _In_
類型:uint64_t
要取得其社交關係的 XBOX 使用者識別碼。 socialRelationshipFilter   _In_
類型:XblSocialRelationshipFilter
控制清單的篩選方式。 startIndex   _In_
類型:size_t
控制結果清單的起始索引。 maxItems   _In_
類型:size_t
結果清單可包含的項目數目上限。傳入 0 以嘗試擷取所有項目。 async   _In_
類型:XAsyncBlock*
呼叫者配置的 XAsyncBlock。

傳回值

類型:HRESULT 此 API 作業的 HRESULT 傳回碼。

備註

呼叫 XblSocialGetSocialRelationshipsResult 以取得結果。

REST 呼叫

V1 GET /users//people?view=&startIndex=&maxItems=

需求

標頭: social_c.h 程式庫: Microsoft.Xbox.Services.14x.GDK.C.lib

另請參閱

social_c
Last modified on October 6, 2026