EngFntCacheAlloc function (winddi.h)
The EngFntCacheAlloc function allocates storage for a font that is to be stored in cached memory.
Syntax
ENGAPI PVOID EngFntCacheAlloc(
[in] ULONG FastCheckSum,
[in] ULONG ulSize
);
Parameters
[in] FastCheckSum
Specifies the checksum for the font.
[in] ulSize
Specifies the number of bytes of storage to allocate.
Return value
On success, this function returns the address of the cache of font data. Otherwise, it returns NULL.
Remarks
When the font driver calls this function, the font engine allocates memory in which the font driver stores font data.
The font engine calls the font driver's DrvLoadFontFile entry point when a font file is first loaded. It is in this call that the font driver receives a value for FastCheckSum, which it subsequently uses when it calls this function.
Requirements
Requirement | Value |
---|---|
Minimum supported client | This function is available in Windows XP and later. |
Target Platform | Universal |
Header | winddi.h (include Winddi.h) |
Library | Win32k.lib |
DLL | Win32k.sys |