Click or drag to resize

ShellDataObjectCreateShellDataObject Method

Creates a native COM object implementing COM native IDataObject. This object is implemented by the Windows Shell. This will automatically add CF_HDROP, CFSTR_FILENAME and CFSTR_SHELLIDLIST formats.

Namespace:  callback.ShellBoost.Core
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Object CreateShellDataObject(
	IEnumerable<IWithIdList> idLists = null,
	IDataObject inner = null,
	bool throwOnError = true
)

Parameters

idLists (Optional)
Type: System.Collections.GenericIEnumerableIWithIdList
An optional list of PIDLs. They all must be in a common folder (possibly the desktop).
inner (Optional)
Type: System.Runtime.InteropServices.ComTypesIDataObject
An optional inner IDataObject.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of Windows Shell errors.

Return Value

Type: Object
A COM Object that implements the native COM IDataObject.
See Also