다음을 통해 공유


XblUserStatisticsGetSingleUserStatisticAsync

지정된 사용자에 대해 지정된 통계를 가져옵니다.

구문

HRESULT XblUserStatisticsGetSingleUserStatisticAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t xboxUserId,  
         const char* serviceConfigurationId,  
         const char* statisticName,  
         XAsyncBlock* async  
)  

매개 변수

xblContextHandle _In_
형식: XblContextHandle

로컬 사용자용 Xbox Live 컨텍스트입니다.

xboxUserId _In_
형식: uint64_t

통계를 가져올 플레이어의 Xbox 사용자 ID입니다.

serviceConfigurationId _In_z_
형식: char*

타이틀용 SCID(서비스 구성 ID)입니다. SCID는 대소문자를 구분하므로 파트너 센터에서 직접 붙여넣기하세요.

statisticName _In_z_
형식: char*

반환할 통계의 이름입니다.

async _In_
형식: XAsyncBlock*

이 작업에 대한 AsyncBlock입니다.

반환 값

형식: HRESULT

이 API 작업에 대한 HRESULT 반환 코드입니다.

설명

결과를 가져오려면 완료 후 XblUserStatisticsGetSingleUserStatisticResultSizeXblUserStatisticsGetSingleUserStatisticResult를 호출합니다.

이벤트 기반 통계를 사용하는 경우, 통계 이름은 각 통계의 통계 인스턴스와 일치합니다. 타이틀 관리 통계를 사용하는 경우 통계 이름은 각 통계의 ID와 일치합니다.

REST 호출

V1 GET /users/xuid({xuid})/scids/{scid}/stats/{statname1}

요구 사항

헤더: user_statistics_c.h

도서관: Microsoft.Xbox.Services.14x.GDK.C.lib

참고 항목

user_statistics_c