Click or drag to resize

ShellUtilitiesCreateInstance Method (Guid, Guid, CLSCTX, Boolean)

Creates an instance of a COM object.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Object CreateInstance(
	Guid clsid,
	Guid iid,
	CLSCTX context = CLSCTX.CLSCTX_ALL,
	bool throwOnError = true
)

Parameters

clsid
Type: SystemGuid
The COM object class identifier.
iid
Type: SystemGuid
The requested COM interface identifier.
context (Optional)
Type: callback.ShellBoost.Core.WindowsShellCLSCTX
The context.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw.

Return Value

Type: Object
An instance of the COM object or null of an error occurred.
See Also