ILSaveToStream function

Saves an ITEMIDLIST structure to a stream.

Syntax

SHSTDAPI ILSaveToStream(
  IStream            *pstm,
  PCUIDLIST_RELATIVE pidl
);

Parameters

pstm

Type: IStream *

A pointer to the IStream interface where the ITEMIDLIST is saved.

pidl

Type: PCUIDLIST_RELATIVE

A pointer to the ITEMIDLIST structure to be saved.

Return Value

Type: HRESULT

Returns S_OK if successful, or a COM error value otherwise.

Remarks

The stream must be opened for writing, or ILSaveToStream returns an error.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.0 or later)

See Also

ILLoadFromStream