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

# XblEventsSetStorageAllotment

> XblEventsSetStorageAllotment

# XblEventsSetStorageAllotment

Xsapi가 가장 오래된 파일 삭제를 시작하기 전까지 재시도 및 업로드 대기 중인 이벤트를 저장하는 데 사용할 수 있는 최대 디스크 공간을 설정합니다.

## 구문

```cpp theme={null}
HRESULT XblEventsSetStorageAllotment(  
         uint64_t storageAllotmentInBytes  
)  
```

### 매개 변수

*storageAllotmentInBytes*   \
형식: uint64\_t

보류 중인 이벤트를 저장하는 데 사용될 최대 저장 공간(바이트)입니다.

### 반환값

형식: HRESULT

이 API 작업에 대한 HRESULT 반환 코드입니다.

## 설명

최대 저장 공간을 초과하면 가장 오래된 파일이 알림 없이 삭제됩니다. 이 설정은 전역 설정이며 모든 XBOX Live 컨텍스트에 적용됩니다. 기본값은 약 20MB입니다.

## 요구 사항

**헤더:** events\_c.h

**라이브러리:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 참고 항목

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


## Related topics

- [IDStorageQueueX1::EnqueueSetEvent](/ko/reference/system/dstorage/interfaces/IDStorageQueueX1/methods/idstoragequeuex_enqueuesetevent.md)
- [XblLocalStorageSetHandlers](/ko/reference/live/xsapi-c/platform_c/functions/xbllocalstoragesethandlers.md)
- [DirectStorage 개요](/ko/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageQueueX1](/ko/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1.md)
- [XblEventsSetMaxFileSize](/ko/reference/live/xsapi-c/events_c/functions/xbleventssetmaxfilesize.md)
