Notifies the font object that the previously realized font identified with hFont (obtained from IFont::get_hFont) should remain valid until IFont::ReleaseHfont is called or the font object itself is released completely.
HRESULT AddRefHfont(
HFONT hfont //Font handle returned from IFont::GetHfont
);
The method supports the standard return values E_UNEXPECTED and E_INVALIDARG, as well as the following:
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.
IFont::get hFont, IFont:ReleaseHfont