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:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.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: ShellBoost.Core.WindowsShellBuildMenuOptions
The options.
flags (Optional)
Type: 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