IAppVisibilityEvents::AppVisibilityOnMonitorChanged method (shobjidl_core.h)
Notifies a client that the mode of a display has changed.
Syntax
HRESULT AppVisibilityOnMonitorChanged(
[in] HMONITOR hMonitor,
[in] MONITOR_APP_VISIBILITY previousMode,
[in] MONITOR_APP_VISIBILITY currentMode
);
Parameters
[in] hMonitor
The display that has a changing mode.
[in] previousMode
The previous mode of hMonitor, which may be MAV_UNKNOWN if the client was unaware of the display previously.
[in] currentMode
The current mode of hMonitor, which will not be MAV_UNKNOWN.
Return value
The return value is ignored.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | shobjidl_core.h (include Shobjidl.h) |
Library | Twinapi.lib |