XMemAlloc

Application-defined memory allocation callback function that replaces the default memory allocator.

Syntax

PVOID XMemAlloc(
         SIZE_T dwSize,
         ULONGLONG dwAttributes
)  

Parameters

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.

Return value

Type: PVOID 

Returns a pointer to the allocated memory.

See also

XMEMALLOC_ROUTINE

XMemFree

Requirements

Header: Declared in xmem.h.