RemoveFontMemResourceEx function (wingdi.h)

The RemoveFontMemResourceEx function removes the fonts added from a memory image file.

Syntax

BOOL RemoveFontMemResourceEx(
  [in] HANDLE h
);

Parameters

[in] h

A handle to the font-resource. This handle is returned by the AddFontMemResourceEx function.

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 removes a font that was added by the AddFontMemResourceEx function. To remove the font, specify the same path and flags as were used in AddFontMemResourceEx. This function will only remove the font that is specified by fh.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

AddFontMemResourceEx

Font and Text Functions

Fonts and Text Overview

SendMessage