IShellFolderBindToStorage Method

Requests a pointer to an object's storage interface.

Definition

Namespace: DevCase.Win32.Interfaces
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
Object BindToStorage(
	PIDL pidl,
	[OptionalAttribute] IBindCtx bindContext,
	ref Guid refIid
)

Parameters

pidl  PIDL
The address of an ITEMIDLIST structure that identifies the subfolder relative to its parent folder.

The structure must contain exactly one SHITEMID structure followed by a terminating zero.

bindContext  IBindCtx  (Optional)
The optional address of an IBindCtx interface on a bind context object to be used during this operation.

If this parameter is not used, set it to NULL.

Because support for bindContext is optional for folder object implementations, some folders may not support the use of bind contexts.

refIid  Guid
The IID of the requested storage interface.

To retrieve an IStream, IStorage, or IPropertySetStorage interface pointer, set refIid to IID_IStream, IID_IStorage, or IID_IPropertySetStorage, respectively.

Return Value

Object
The address that receives the interface pointer specified by refIid.

If an error occurs, a NULL pointer is returned in this address.

See Also