Click or drag to resize

MenuCreateContextMenu Method (Guid, IWithIdList, ContextMenuOptions, Boolean)

Creates a native IContextMenu COM server for a given PIDL.

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

Parameters

clsid
Type: SystemGuid
The COM server class identifier.
idList
Type: callback.ShellBoost.CoreIWithIdList
The PIDL.
options (Optional)
Type: callback.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