Export (0) Print
Expand All
Expand Minimize

EngMapFontFileFD function

The EngMapFontFileFD function maps a font file into system memory, if necessary, and returns a pointer to the base location of the font data in the file.

Syntax


BOOL EngMapFontFileFD(
  _In_   ULONG_PTR iFile,
  _Out_  PULONG    *ppjBuf,
  _Out_  ULONG     *pcjBuf
);

Parameters

iFile [in]

Caller-supplied pointer to a value that identifies the font file to be mapped. This pointer must have been received previously as input to DrvLoadFontFile.

ppjBuf [out]

Pointer to a memory location that receives the mapped file's base memory address.

pcjBuf [out]

Pointer to a memory location that receives the size, in bytes, of the mapped file.

Return value

EngMapFontFileFD returns TRUE if it succeeds; otherwise, it returns FALSE.

Remarks

The EngMapFontFileFD function is provided so font drivers can map a font file into memory and access the file's data. If the font file has not yet been memory-mapped, EngMapFontFileFD loads the font data into system memory before returning ppjBuf and pcjBuf to the driver. If the file is already mapped, the function just returns the file's ppjBuf and pcjBuf values.

Requirements

Target platform

Universal

Version

Available in Windows 2000 and later versions of the Windows operating systems.

Header

Winddi.h (include Winddi.h)

Library

Win32k.lib

DLL

Win32k.sys

See also

DrvLoadFontFile
EngUnmapFontFileFD

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft