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

# PFMemSetFunctions

> 호출자가 메모리 할당을 자체 메모리 관리자로 라우팅하도록 제어할 수 있도록 메모리 후크 함수를 선택적으로 설정합니다. 이는 다음 함수 호출 전에 호출되어야 합니다.

호출자가 메모리 할당을 자체 메모리 관리자로 라우팅하도록 제어할 수 있도록 메모리 후크 함수를 선택적으로 설정합니다. 이는 PFInitialize() 전에 호출되어야 하며 메모리 후크가 설정된 후에는 다시 호출할 수 없습니다. 이 메서드를 통해 애플리케이션은 기본 할당 루틴을 사용하는 대신 새 메모리 버퍼에 대한 모든 요청을 처리하기 위해 사용자 지정 메모리 할당 루틴을 설치할 수 있습니다.

## Syntax

```cpp theme={null}
HRESULT PFMemSetFunctions(  
    PFMemoryHooks* hooks  
)  
```

### Parameters

**`hooks`**   [PFMemoryHooks\*](/services/playfab/api-references/c/pfplatform/structs/pfmemoryhooks)

SDK에서 사용할 사용자 지정 메모리 후크입니다.

### Return value

Type: HRESULT

이 API 작업의 HRESULT 반환 코드입니다.

## Remarks

PFInitialize 전에 호출되어야 합니다.

## Requirements

**Header:** PFPlatform.h

## See also

[PFPlatform members](/services/playfab/api-references/c/pfplatform/pfplatform_members)


## Related topics

- [PFMemGetFunctions](/ko/services/playfab/api-references/c/pfplatform/functions/pfmemgetfunctions.md)
- [SDK 수명 주기](/ko/services/playfab/sdks/c/lifecycle.md)
- [메모리 후킹](/ko/services/playfab/sdks/c/memory.md)
- [Services C API 개요 - PFPlatform.h](/ko/services/playfab/api-references/c/pfplatform/pfplatform_members.md)
- [HCMemSetFunctions](/ko/reference/live/httpclient/httpclient/functions/hcmemsetfunctions.md)
