> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingQueryStatistics

> XNetworkingQueryStatistics

# XNetworkingQueryStatistics

지정된 네트워킹 통계를 호출자가 제공한 버퍼로 검색합니다.

## 구문

```cpp theme={null}
HRESULT XNetworkingQueryStatistics(  
         XNetworkingStatisticsType statisticsType,  
         XNetworkingStatisticsBuffer* statisticsBuffer
)  
```

### 매개 변수

*statisticsType*   \_In\_\
형식: [XNetworkingStatisticsType](/reference/networking/xnetworking/enums/xnetworkingstatisticstype)

검색할 특정 통계를 식별하는 열거형 값입니다.

*statisticsBuffer*    \_Out\_\
형식: [XNetworkingStatisticsBuffer](/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer)

요청된 통계가 기록될, 호출자가 제공한 구조체에 대한 포인터입니다. 유니언 버퍼 내에서 정확히 어떤 하위 구조체 필드가 기록되는지는 요청된 통계 유형에 따라 달라집니다.

### 반환 값

형식: HRESULT

통계 검색이 성공한 경우 S\_OK입니다. 지정된 통계 유형 검색이 현재 플랫폼에서 지원되지 않는 경우 E\_NOTIMPL입니다. 지정된 통계 유형이 Gaming Runtime에서 인식되지 않는 경우 E\_INVALIDARG입니다.

## 설명

이 함수는 지정된 네트워킹 관련 통계의 스냅샷을 호출자가 제공한 버퍼로 검색합니다. 대부분의 통계는 이 함수를 여러 번 호출할 때 동일한 값이 보고된다고 보장되지 않습니다.

출력 버퍼 유니언 내에서 통계별 하위 구조체 필드만 기록됩니다. 유니언 전체가 정의하지만 하위 구조체의 끝을 넘어서는 호출자 출력 버퍼의 추가 메모리는 이 함수에 의해 어떤 방식으로도 수정되지 않습니다.

## 요구 사항

**헤더:** XNetworking.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [XNetworkingStatisticsBuffer](/ko/reference/networking/xnetworking/structs/xnetworkingstatisticsbuffer.md)
- [XNetworkingStatisticsType](/ko/reference/networking/xnetworking/enums/xnetworkingstatisticstype.md)
- [XNetworkingTcpQueuedReceivedBufferUsageStatistics](/ko/reference/networking/xnetworking/structs/xnetworkingtcpqueuedreceivedbufferusagestatistics.md)
- [XNetworking](/ko/reference/networking/xnetworking/xnetworking_members.md)
- [XNetworkingConfigurationSetting](/ko/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
