MSDN Library


Windows Mobile 6.5
A version of this page is also available for

This function removes the fonts in the specified file from the operating system's font table.

BOOL RemoveFontResource(
  LPCTSTR lpFileName


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

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

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 is using the font.

Windows Embedded CEWindows CE 1.0 and later
Windows MobilePocket PC for Windows Mobile Version 5.0 and later, Smartphone for Windows Mobile Version 5.0 and later

Community Additions

© 2016 Microsoft