Click or drag to resize

ShellUtilitiesExtractMenu Method (IntPtr, Boolean)

Extracts a Windows menu information.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static ShellMenuItemList ExtractMenu(
	IntPtr menuHandle,
	bool includeBitmaps
)

Parameters

menuHandle
Type: SystemIntPtr
The menu handle.
includeBitmaps
Type: SystemBoolean
if set to true, include bitmaps

Return Value

Type: ShellMenuItemList
An instance of the ShellMenuItemList class.
Exceptions
ExceptionCondition
ArgumentExceptionmenuHandle is zero.
Remarks
This method behavior depends on many contextual parameters such as the process bitness (32 or 64 bit), the type of process (Console vs Windows), or the the current thread's COM apartment state (STA vs MTA, etc.). It also depends on how dynamic context menu handlers choose to add or not menu items.
See Also