Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FmtIdToPropStgName function

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

pfmtid [in]

A pointer to the FMTID of the property set.

oszName [out]

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:

S_OK

The storage or stream name of the property set was successfully returned.

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 | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Propidl.h

Library

Ole32.lib

DLL

Ole32.dll

See also

PROPSETFLAG Constants
PropStgNameToFmtId
StgCreatePropStg
StgOpenPropStg

 

 

Community Additions

Show:
© 2016 Microsoft