IExplorerCommand::Invoke method (shobjidl_core.h)

Invokes a Windows Explorer command.

Syntax

HRESULT Invoke(
  [in] IShellItemArray *psiItemArray,
  [in] IBindCtx        *pbc
);

Parameters

[in] psiItemArray

Type: IShellItemArray*

A pointer to an IShellItemArray.

[in] pbc

Type: IBindCtx*

A pointer to an IBindCtx interface, which provides access to a bind context. This value can be NULL if no bind context is needed.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)