FmtIdToPropStgName function

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

Syntax

HRESULT FmtIdToPropStgName(
  const FMTID *pfmtid,
  LPOLESTR    oszName
);

Parameters

pfmtid

A pointer to the FMTID of the property set.

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

   
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