PFMemSetFunctions

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