IExecuteCommandHost::GetUIMode method (shobjidl_core.h)

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

Syntax

HRESULT GetUIMode(
  [out] EC_HOST_UI_MODE *pUIMode
);

Parameters

[out] pUIMode

Type: EC_HOST_UI_MODE*

ECHUIM_DESKTOP (0)

The application is running in the desktop environment.

ECHUIM_IMMERSIVE (1)

The application is running in the Windows 8 immersive environment.

ECHUIM_SYSTEM_LAUNCHER (2)

The application is running in the system launcher environment.

Return value

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

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)

See also

IExecuteCommandHost