CFP_ALLOCPROC callback function (fontsub.h)
Client-provided callback function, used by CreateFontPackage and MergeFontPackage to allocate memory.
Syntax
CFP_ALLOCPROC CfpAllocproc;
void * CfpAllocproc(
size_t unnamedParam1
)
{...}
Parameters
unnamedParam1
Number of bytes to allocate.
Return value
Returns a void pointer to the allocated space, or NULL if there is insufficient memory available.
Remarks
malloc conforms to this type; the application can either use malloc or a more specialized function for memory allocation. Whatever function is chosen, there must also be appropriate functions to reallocate and to free 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 |