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

# XblMultiplayerSessionSetAllocateCloudCompute

> 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](/reference/live/xsapi-c/multiplayer_c/handles/xblmultiplayersessionhandle)

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.14x.GDK.C.lib

## See also

[multiplayer\_c](/reference/live/xsapi-c/multiplayer_c/multiplayer_c_members)


## Related topics

- [Session template constants](/services/xbox-services/multiplayer/mpsd/concepts/live-session-template-constants.md)
- [XUserPrivilege](/reference/system/xuser/enums/xuserprivilege.md)
- [XblMultiplayerSessionProperties](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionproperties.md)
- [XblMultiplayerSessionConstants](/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionconstants.md)
- [Privilege codes for Social Manager](/services/xbox-services/community/social-manager/concepts/live-socmgr-privilege-codes.md)
