FmtIdToPropStgName function (coml2api.h)

The FmtIdToPropStgName function converts a property set format identifier (FMTID) to its storage or stream name.

Syntax

HRESULT FmtIdToPropStgName(
  [in]  const FMTID *pfmtid,
  [out] LPOLESTR    oszName
);

Parameters

[in] pfmtid

A pointer to the FMTID of the property set.

[out] oszName

A pointer to a null-terminated string that receives the storage or stream name of the property set identified by pfmtid. The array allocated for this string must be at least CCH_MAX_PROPSTG_NAME (32) characters in length.

Return value

This function supports the standard return value E_INVALIDARG as well as the following:

Remarks

FmtIdToPropStgName maps a property set FMTID to its stream name for a simple property set or to its storage name for a nonsimple property set.

This function is useful in creating or opening a property set using the PROPSETFLAG_UNBUFFERED value with the StgCreatePropStg and StgOpenPropStg functions. For more information about PROPSETFLAG_UNBUFFERED, see PROPSETFLAG Constants.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header coml2api.h (include Propidl.h)
Library Ole32.lib
DLL Ole32.dll

See also

PROPSETFLAG Constants

PropStgNameToFmtId

StgCreatePropStg

StgOpenPropStg