This topic has not yet been rated - Rate this topic

RemoveFontResourceEx function

Applies to: desktop apps only

The RemoveFontResourceEx function removes the fonts in the specified file from the system font table.

Syntax

BOOL RemoveFontResourceEx(
  __in  LPCTSTR lpFileName,
  __in  DWORD fl,
  __in  PVOID pdv
);

Parameters

lpFileName [in]

A pointer to a null-terminated string that names a font resource file.

fl [in]

The characteristics of the font to be removed from the system. In order for the font to be removed, the flags used must be the same as when the font was added with the AddFontResourceEx function. See the AddFontResourceEx function for more information.

pdv [in]

Reserved. Must be zero.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. No extended error information is available.

Remarks

This function will only remove the font if the flags specified are the same as when then font was added with the AddFontResourceEx function.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

Unicode and ANSI names

RemoveFontResourceExW (Unicode) and RemoveFontResourceExA (ANSI)

See also

Fonts and Text Overview
Font and Text Functions
AddFontResourceEx
SendMessage

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ