Click or drag to resize

MenuContextFromIDList Method (IntPtr, BuildMenuOptions, IBindCtx, CMF, Object, Boolean)

Gets the context menu from a PIDL.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static Menu ContextFromIDList(
	IntPtr pidl,
	BuildMenuOptions options = BuildMenuOptions.None,
	IBindCtx context = null,
	CMF flags = CMF.CMF_NORMAL,
	Object site = null,
	bool throwOnError = true
)

Parameters

pidl
Type: SystemIntPtr
The pidl.
options (Optional)
Type: ShellBoost.Core.WindowsShellBuildMenuOptions
The options.
context (Optional)
Type: System.Runtime.InteropServices.ComTypesIBindCtx
The COM bind context.
flags (Optional)
Type: ShellBoost.Core.WindowsShellCMF
Optional flags that specify how the shortcut menu can be changed.
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 menu or null.
Exceptions
ExceptionCondition
ArgumentExceptionpidl is Zero.
See Also