Επεξεργασία

Κοινή χρήση μέσω


ILSaveToStream function (shlobj_core.h)

Saves an ITEMIDLIST structure to a stream.

Syntax

SHSTDAPI ILSaveToStream(
  [in] IStream            *pstm,
  [in] PCUIDLIST_RELATIVE pidl
);

Parameters

[in] pstm

Type: IStream *

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

[in] 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

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server 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)
API set ext-ms-win-shell-shell32-l1-2-1 (introduced in Windows 10, version 10.0.10240)

See also

ILLoadFromStream