> ## 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.

# XNetworkingSetConfigurationSetting

> XNetworkingSetConfigurationSetting

# XNetworkingSetConfigurationSetting

Modifies a specified networking configuration setting to the provided numeric value.

## Syntax

```cpp theme={null}
HRESULT XNetworkingSetConfigurationSetting(  
         XNetworkingConfigurationSetting configurationParameter,  
         uint64_t value  
)  
```

### Parameters

*configurationParameter*   \_In\_\
Type: [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting)

The enumerated value identifying the configuration setting to be modified.

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

The new value for the networking configuration setting.

### Return value

Type: HRESULT

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

## Remarks

*XNetworkingSetConfigurationSetting* allows games to adjust certain networking-related system configuration values to better suit their specific requirements. Typically any such modification is done during startup immediately after the Gaming Runtime is initialized, but entering or exiting online or multiplayer modes may also be appropriate for altering settings that support being modified at other times.\
The current value for a configuration setting can be retrieved using the corresponding [XNetworkingQueryConfigurationSetting](/reference/networking/xnetworking/functions/xnetworkingqueryconfigurationsetting) function.

## Requirements

**Header:** XNetworking.h

**Library:** xgameruntime.lib

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

## See also

[XNetworking](/reference/networking/xnetworking/xnetworking_members)\
[XNetworkingQueryConfigurationSetting](/reference/networking/xnetworking/functions/xnetworkingqueryconfigurationsetting)


## Related topics

- [XNetworkingConfigurationSetting](/reference/networking/xnetworking/enums/xnetworkingconfigurationsetting.md)
- [XNetworkingQueryConfigurationSetting](/reference/networking/xnetworking/functions/xnetworkingqueryconfigurationsetting.md)
- [XNetworking](/reference/networking/xnetworking/xnetworking_members.md)
- [HTTP Configuration](/services/playfab/sdks/c/http-config.md)
- [IXtfConfigSettingsCallback::OnFoundSetting](/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConfigSettingsCallback/methods/ixtfconfigsettingscallback_onfoundsetting.md)
