Click or drag to resize

MenuCreateContextMenu Method (Guid, IWithIdList, Menu, ContextMenuOptions, Boolean)

Creates a native IContextMenu COM server for a given PIDL.

Namespace:  ShellBoost.Core.WindowsShell
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static int CreateContextMenu(
	Guid clsid,
	IWithIdList idList,
	out Menu menu,
	ContextMenuOptions options = null,
	bool throwOnError = true
)

Parameters

clsid
Type: SystemGuid
The COM server class identifier.
idList
Type: ShellBoost.CoreIWithIdList
The PIDL.
menu
Type: ShellBoost.Core.WindowsShellMenu
The menu extracted from the context menu. If wil be extracted only if ShowMenuOptions.ExtractMenu is set to true and if the menu is created synchronously.
options (Optional)
Type: ShellBoost.Core.WindowsShellContextMenuOptions
The options.
throwOnError (Optional)
Type: SystemBoolean
true to throw error; otherwise false.

Return Value

Type: Int32
0 or an error code.
See Also