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:  ShellBoost.Core
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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