Redigera

PFMemSetFunctions

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

Optionally sets the memory hook functions to allow callers to control route memory allocations to their own memory manager. This must be called before PFInitialize() and can not be called again once memory hooks have been set. This method allows the application to install custom memory allocation routines in order to service all requests for new memory buffers instead of using default allocation routines.

Syntax

HRESULT PFMemSetFunctions(  
    PFMemoryHooks* hooks  
)  

Parameters

hooks   PFMemoryHooks*

Custom memory hooks to be used by the SDK.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

Must be called before PFInitialize.

Requirements

Header: PFPlatform.h

See also

PFPlatform members