IExecuteCommandHost interface (shobjidl_core.h)

Provides a method that enables an IExplorerCommand-based Shell verb handler to query the UI mode of the host component from which the application was invoked.

Inheritance

The IExecuteCommandHost interface inherits from the IUnknown interface. IExecuteCommandHost also has these types of members:

Methods

The IExecuteCommandHost interface has these methods.

 
IExecuteCommandHost::GetUIMode

Enables an IExplorerCommand-based Shell verb handler to query the UI mode of the host component from which the application was invoked..

Remarks

When to implement

A software component (either an OS component or an application) taat can launch a dual-mode application such as a browser should implement this interface. The interface should be implemented on an object that can be reached through the site chain provided to ShellExecuteEx or the context menu and retrieved through the IServiceProvider::QueryService method.

When to use

Typically, an application that is capable of launching as both a desktop application and a Windows Store app will use this interface to query which mode the host is currently in. The application can then launch in the UI mode that is compatible with the host.

Requirements

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