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

# XMEM_ALLOCATION_HOOKS

> XMEM_ALLOCATION_HOOKS

# XMEM\_ALLOCATION\_HOOKS

타이틀에 대한 메모리 할당 및 할당 해제 함수의 후크를 나타냅니다.

<a id="syntaxSection" />

## 구문

```cpp theme={null}
typedef struct XMEM_ALLOCATION_HOOKS {  
    PXMEMALLOC_ROUTINE AllocRoutine;  
    PXMEMFREE_ROUTINE FreeRoutine;  
} XMEM_ALLOCATION_HOOKS  
```

<a id="membersSection" />

### 멤버

*AllocRoutine*\
형식: PXMEMALLOC\_ROUTINE

타이틀의 할당 함수에 대한 포인터입니다. 애플리케이션 정의 메모리 할당 함수를 구현하는 방법에 대한 자세한 내용은 [XMEMALLOC\_ROUTINE](/reference/system/xmem/functions/xmemalloc_routine) 및 [XMemAlloc](/reference/system/xmem/functions/xmemalloc)을 참조하세요.

*FreeRoutine*\
형식: PXMEMFREE\_ROUTINE

타이틀의 할당 해제 함수에 대한 포인터입니다. 애플리케이션 정의 메모리 할당 해제 함수를 구현하는 방법에 대한 자세한 내용은 [XMEMFREE\_ROUTINE](/reference/system/xmem/functions/xmemfree_routine) 및 [XMemFree](/reference/system/xmem/functions/xmemfree)를 참조하세요.

<a id="remarksSection" />

## 설명

이 구조체는 [XMEM\_SET\_ALLOCATION\_HOOKS](/reference/system/xmem/macros/xmem_set_allocation_hooks) 매크로에서 타이틀에 대한 애플리케이션 정의 메모리 할당 및 할당 해제 함수를 등록하는 데 사용됩니다. 그래픽 메모리에 대한 자세한 내용은 [GDK용 그래픽스 메모리 개요](/build/core-features/graphics/graphics-memory-overview)를 참조하세요.

<Note>[XMemSetAllocationHooks](/reference/system/xmem/functions/xmemsetallocationhooks) 함수는 더 이상 사용되지 않습니다. `XMemSetAllocationHooks` 함수 대신 이 매크로를 사용하여 타이틀의 메모리 할당 및 할당 해제 함수를 등록하세요.</Note>

<a id="requirementsSection" />

## 요구 사항

**헤더:** xmem.h

**지원 플랫폼:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

<a id="seealsoSection" />

## 함께 보기

[XMEM\_SET\_ALLOCATION\_HOOKS](/reference/system/xmem/macros/xmem_set_allocation_hooks)\
[XMEMALLOC\_ROUTINE](/reference/system/xmem/functions/xmemalloc_routine)\
[XMEMFREE\_ROUTINE](/reference/system/xmem/functions/xmemfree_routine)\
[XMem](/reference/system/xmem/xmem_members)


## Related topics

- [XMemSetAllocationHooks](/ko/reference/system/xmem/functions/xmemsetallocationhooks.md)
- [XMemFreeDefault](/ko/reference/system/xmem/functions/xmemfreedefault.md)
- [XMEMFREE_ROUTINE callback](/ko/reference/system/xmem/functions/xmemfree_routine.md)
- [Xmemalloc routine](/ko/reference/system/xmem/functions/xmemalloc_routine.md)
- [XMemSetWin32HeapTrackingHooks](/ko/reference/system/xmem/functions/xmemsetwin32heaptrackinghooks.md)
