Skip to content

Latest commit

 

History

History
84 lines (62 loc) · 2.85 KB

nc-fontsub-cfp_reallocproc.md

File metadata and controls

84 lines (62 loc) · 2.85 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NC:fontsub.CFP_REALLOCPROC
CFP_REALLOCPROC (fontsub.h)
Client-provided callback function, used by CreateFontPackage and MergeFontPackage to reallocate memory when the size of an allocated buffer needs to change.
CFP_REALLOCPROC
CFP_REALLOCPROC callback
CFP_REALLOCPROC callback function [Windows GDI]
_win32_CFP_REALLOCPROC
fontsub/CFP_REALLOCPROC
gdi.cfp_reallocproc
gdi\cfp_reallocproc.htm
gdi
06c45ea3-1776-4f9c-a931-461d0b697535
12/05/2018
CFP_REALLOCPROC, CFP_REALLOCPROC callback, CFP_REALLOCPROC callback function [Windows GDI], _win32_CFP_REALLOCPROC, fontsub/CFP_REALLOCPROC, gdi.cfp_reallocproc
fontsub.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
CFP_REALLOCPROC
fontsub/CFP_REALLOCPROC
c++
APIRef
kbSyntax
UserDefined
FontSub.h
CFP_REALLOCPROC

-description

Client-provided callback function, used by CreateFontPackage and MergeFontPackage to reallocate memory when the size of an allocated buffer needs to change.

-parameters

-param unnamedParam1

Pointer to previously allocated memory block.

-param unnamedParam2

New size in bytes.

-returns

Returns a void pointer to the reallocated (and possibly moved) memory block. The return value should be NULL if the size is zero and the memblock argument is not NULL, or if there is not enough available memory to expand the block to the given size. In the first case, the original block should be freed. In the second, the original block should be unchanged.

-remarks

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

-see-also

CFP_ALLOCPROC

CFP_FREEPROC

CreateFontPackage

MergeFontPackage