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

# XblEventsSetMaxFileSize

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

## See also

[events\_c](/reference/live/xsapi-c/events_c/events_c_members)


## Related topics

- [FileSet](/services/playfab/api-references/events/data-types/fileset.md)
- [XblEventsSetStorageAllotment](/reference/live/xsapi-c/events_c/functions/xbleventssetstorageallotment.md)
- [XblTitleStorageBlobMetadata](/reference/live/xsapi-c/title_storage_c/structs/xbltitlestorageblobmetadata.md)
- [entity_files_set](/services/playfab/api-references/events/PlayerProfile/entity-files-set.md)
- [HCWebSocketSetMaxReceiveBufferSize](/reference/live/httpclient/httpclient/functions/hcwebsocketsetmaxreceivebuffersize.md)
