Share via


RemoveFontResource (Windows CE 5.0)

Send Feedback

This function removes the fonts in the specified file from the Windows CE font table.

BOOLRemoveFontResource(LPCTSTRlpFileName);

Parameters

  • lpFileName
    [in] Long pointer to a null-terminated string that names a font resource file.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

An application that adds or removes fonts from the system font table should notify other windows of the change by sending a WM_FONTCHANGE message to all top-level windows in the system. The application sends this message by calling the SendMessage function with the hwnd parameter set to HWND_BROADCAST.

If outstanding references to a font exist, the associated resource remains loaded until no device context (DC) is using the font.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

AddFontResource | SendMessage | WM_FONTCHANGE

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.