IFont::get_Name method (ocidl.h)

Retrieves the name of the font family.

Syntax

HRESULT get_Name(
  BSTR *pName
);

Parameters

pName

A pointer to the caller-allocated variable that receives the name. This string must be freed with SysFreeString when it is no longer needed.

Return value

The method supports the standard return value E_UNEXPECTED, as well as the following values.

Return code Description
S_OK
The name was returned successfully.
E_POINTER
The address in the pname parameter is not valid. For example, it may be NULL.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ocidl.h

See also

IFont

IFont::put_Name