CFP_FREEPROC callback function (fontsub.h)

Client-provided callback function, used by CreateFontPackage and MergeFontPackage to free memory.

Syntax

CFP_FREEPROC CfpFreeproc;

void CfpFreeproc(
  void *unnamedParam1
)
{...}

Parameters

unnamedParam1

Previously allocated memory block to be freed.

Return value

Deallocates a memory block (memblock) that was previously allocated by a call to a CFP_ALLOCPROC or CFP_REALLOCPROC callback function. If memblock is NULL, the pointer should be ignored and the function should return immediately. The function is not required to correctly handle being passed an invalid pointer (a pointer to a memory block that was not allocated by the appropriate CFP_ALLOCPROC or CFP_REALLOCPROC callback function).

Remarks

free conforms to this type; the application can either use free or a more specialized function. Whatever function is chosen, there must also be appropriate functions to allocate and to reallocate this memory.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header fontsub.h

See also

CFP_ALLOCPROC

CFP_REALLOCPROC

CreateFontPackage

MergeFontPackage