In the example provider component, a code example showing memory allocation and freeing is in memory.cpp. Supported routines are listed in the following table.

Item Description
AllocProvMem Allocate specified memory.
FreeProvMem Free memory indicated.
ReallocProvMem Allocate contiguous memory.
AllocProvStr Allocate an LPWSTR string.
FreeProvStr Free string if not already freed.
ReallocProvStr Allocate contiguous memory.
ProvAllocString Verifies string and first parameter. If OK, then performs allocation.