Click or drag to resize

MenuNewFromIDList Method (IntPtr, BuildMenuOptions, CMF, IDataObject, Object, Boolean)

Gets the 'New' menu from a PIDL. This menu is only supported for Shell folders.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Menu NewFromIDList(
	IntPtr pidl,
	BuildMenuOptions options = BuildMenuOptions.None,
	CMF flags = CMF.CMF_NORMAL,
	IDataObject dataObject = null,
	Object site = null,
	bool throwOnError = true
)

Parameters

pidl
Type: SystemIntPtr
The pidl.
options (Optional)
Type: callback.ShellBoost.Core.WindowsShellBuildMenuOptions
The options.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellCMF
Optional flags that specify how the shortcut menu can be changed.
dataObject (Optional)
Type: System.Runtime.InteropServices.ComTypesIDataObject
An optional data object instance.
site (Optional)
Type: SystemObject
An optional COM object site.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Menu
An instance of the Menu class or null.
Exceptions
ExceptionCondition
ArgumentExceptionpidl is Zero.
See Also