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

# XblMultiplayerSessionSetAllocateCloudCompute

> XblMultiplayerSessionSetAllocateCloudCompute

If this property is set an allocation of the 'cloudComputePackage' will be attempted.

## Syntax

```cpp theme={null}
void XblMultiplayerSessionSetAllocateCloudCompute(  
         XblMultiplayerSessionHandle handle,  
         bool allocateCloudCompute  
)  
```

### Parameters

*handle*   \_In\_\
Type: [XblMultiplayerSessionHandle](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle.md)

Handle to the multiplayer session.

*allocateCloudCompute*   \_In\_\
Type: bool

True if a cloud compute package should be allocated and false otherwise.

### Return value

Type: void

## Requirements

**Header:** multiplayer\_c.h

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[multiplayer\_c](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)


## Related topics

- [multiplayer_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members.md)
- [XblMultiplayerSessionConstantsSetCloudComputePackageJson](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetcloudcomputepackagejson.md)
- [Session template constants](https://docs.xbox.com/services/xbox-services/multiplayer/mpsd/concepts/live-session-template-constants.md)
- [XUserPrivilege](https://docs.xbox.com/reference/system/xuser/enums/xuserprivilege.md)
- [XblMultiplayerSessionProperties](https://docs.xbox.com/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionproperties.md)
