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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for