IFont::get_Name

Returns a copy of the name of the font family.

HRESULT get_Name(
  BSTR* pname  //Pointer to the name of the font family
);
 

Parameters

pname
[out] Pointer to the caller-allocated variable that receives the copy of the name. This name must be freed with SysFreeString when it is no longer needed.

Return Values

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

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

Remarks

Notes to Callers

The caller is responsible for freeing the memory allocated for the name with SysFreeString.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in ocidl.h.

See Also

IFont::put_Name