PartyXblManager::SetMemoryCallbacks
Optionally configures the memory allocation and freeing callbacks the Party Xbox Live Helper library should use.
Syntax
PartyError SetMemoryCallbacks(
PartyAllocateMemoryCallback allocateMemoryCallback,
PartyFreeMemoryCallback freeMemoryCallback
)
Parameters
allocateMemoryCallback
PartyAllocateMemoryCallback
A pointer to the custom allocation callback to use.
freeMemoryCallback
PartyFreeMemoryCallback
A pointer to the custom freeing callback to use.
Return value
PartyError
c_partyErrorSuccess
if the call succeeded or an error code otherwise.
Remarks
This method allows the application to install custom memory allocation routines in order to service all requests by the Party Xbox Live Helper library for new memory buffers instead of using its default allocation routines.
The allocateMemoryCallback
and freeMemoryCallback
parameters must both be non-null.
To use this method, it must be called before any other Party Xbox Live Helper library method except for GetMemoryCallbacks(). This method cannot be called again for the lifetime of this process.
Requirements
Header: PartyXboxLive.h