IApplicationDesignModeSettings::IsApplicationViewStateSupported method (shobjidl_core.h)

Determines whether a particular application view state is supported for specific spoofed display size and scale factor settings.

You must call IInitializeWithWindow::Initialize to set a proxy core window before calling this method. For a code example, see Display WinRT UI objects that depend on CoreWindow.

Syntax

HRESULT IsApplicationViewStateSupported(
  [in]  APPLICATION_VIEW_STATE viewState,
  [in]  SIZE                   nativeDisplaySizePixels,
  [in]  DEVICE_SCALE_FACTOR    scaleFactor,
  [out] BOOL                   *supported
);

Parameters

[in] viewState

One of the enumeration values that indicates the application view state for which support is being determined.

[in] nativeDisplaySizePixels

The native size of the display to spoof.

[in] scaleFactor

One of the enumeration values that indicates the device scale factor to spoof.

[out] supported

When this method returns successfully, receives a pointer to a Boolean value which is set to TRUE if the application view state is supported for the given display size and scale factor, and FALSE if it is not.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code, including the following:

Return code Description
E_NOT_SET

IInitializeWithWindow::Initialize has not been called to set a proxy core window.

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)
DLL Twinapi.dll

See also

IApplicationDesignModeSettings