Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Memory allocation macro used by IXAPO methods that must allocate arbitrary sized structures that are subsequently returned to the application.
Syntax
LPVOID XAPOAlloc(
ULONG size
);
Parameters
size
Size, in bytes, of the memory block to be allocated.
Return value
Type: LPVOID
Allocated memory block; returns NULL if insufficient memory available.
Remarks
XAPOFree and XAPOAlloc are memory allocation macros that allow one module to allocate memory and another to free it, by guaranteeing that the same heap manager is used regardless of differences between the build environments of the two modules.
| Xbox 360 |
|---|
| XAPOFree and XAPOAlloc resolve to XMemAlloc and XMemFree on Xbox 360. |
| Windows |
|---|
| XAPOFree and XAPOAlloc resolve to CoTaskMemAlloc and CoTaskMemFree. |
Platform Requirements
Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | xapo.h |