IAppVisibility::GetAppVisibilityOnMonitor method (shobjidl_core.h)

Queries the current mode of the specified monitor.

Syntax

HRESULT GetAppVisibilityOnMonitor(
  [in]  HMONITOR               hMonitor,
  [out] MONITOR_APP_VISIBILITY *pMode
);

Parameters

[in] hMonitor

The monitor to query.

[out] pMode

The current mode of hMonitor.

Return value

This method can return one of these values.

Return code Description
E_INVALIDARG
pMode is NULL.

Requirements

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

See also

IAppVisibility

MONITOR_APP_VISIBILITY