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

# XblEventsSetMaxFileSize

> XblEventsSetMaxFileSize

Set the maximum file size for pending events files.

## Syntax

```cpp theme={null}
HRESULT XblEventsSetMaxFileSize(  
         uint64_t maxFileSizeInByes  
)  
```

### Parameters

*maxFileSizeInByes*   \
Type: uint64\_t

The maximum size (in bytes) for pending events files.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

The files will be read into memory all at once. Note that this is a global setting and will apply to all XBOX Live contexts. The default value is 128KB.

## Requirements

**Header:** events\_c.h

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

## See also

[events\_c](https://docs.xbox.com/reference/live/xsapi-c/events_c/events_c_members.md)


## Related topics

- [events_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/events_c/events_c_members.md)
- [FileSet](https://docs.xbox.com/services/playfab/api-references/events/data-types/fileset.md)
- [HCWebSocketSetMaxReceiveBufferSize](https://docs.xbox.com/reference/live/httpclient/httpclient/functions/hcwebsocketsetmaxreceivebuffersize.md)
- [XblEventsSetStorageAllotment](https://docs.xbox.com/reference/live/xsapi-c/events_c/functions/xbleventssetstorageallotment.md)
- [XblTitleStorageBlobMetadata](https://docs.xbox.com/reference/live/xsapi-c/title_storage_c/structs/xbltitlestorageblobmetadata.md)
