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

# XNetworkingQueryConfigurationSetting

> XNetworkingQueryConfigurationSetting

Retrieves the specified networking configuration setting's numeric value.

## Syntax

```cpp theme={null}
HRESULT XNetworkingQueryConfigurationSetting(  
         XNetworkingConfigurationSetting configurationSetting,  
         uint64_t* value  
)  
```

### Parameters

*configurationSetting*   \_In\_\
Type: [XNetworkingConfigurationSetting](https://docs.xbox.com/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)

An enumerated value identifying the configuration setting to be retrieved.

*value*   \_Out\_\
Type: uint64\_t\*

A pointer indicating where to store the numeric value currently assigned to the configuration setting.

### Return value

Type: HRESULT

S\_OK if retrieving the parameter setting value was successful. E\_NOTIMPL if retrieving the specified parameter setting isn't supported on the current platform. E\_INVALIDARG if the specified setting isn't recognized by the Gaming Runtime.

## Remarks

Use [XNetworkingSetConfigurationSetting](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingsetconfigurationsetting.md) to alter a configuration setting's value from its current value.

## Requirements

**Header:** XNetworking.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XNetworking](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)


## Related topics

- [XNetworkingConfigurationSetting](https://docs.xbox.com/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
- [XNetworkingSetConfigurationSetting](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingsetconfigurationsetting.md)
- [XNetworking (API contents)](https://docs.xbox.com/reference/networking/xnetworking/xnetworking_members.md)
- [Using C# wrappers for GDK APIs in your Unity project](https://docs.xbox.com/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XNetworkingQueryPreferredLocalUdpMultiplayerPort](https://docs.xbox.com/reference/networking/xnetworking/functions/xnetworkingquerypreferredlocaludpmultiplayerport.md)
