Application-defined memory allocation callback function that replaces the default memory allocator.
PVOID XMemAlloc(
SIZE_T dwSize,
ULONGLONG dwAttributes
)
dwSize
Type: SIZE_T
[in] Size of the memory block that is being requested.
dwAttributes
Type: ULONGLONG
[in] Attributes of the allocation. Refer to XALLOC_ATTRIBUTES.
Type: PVOID
Returns a pointer to the allocated memory.
Header: Declared in xmem.h.