IDXGIOutputCallback Interface

The IDXGIOutputCallback interface is a callback interface that the presentation framework uses to notify an application when changes occur to a monitor or display output.

Members

Methods

HRESULT OnDisplayChanged( _In_ IDXGIOutput* pOutput, _In_ DXGI_OUTPUT_DESC* pDesc );

This method is called by the system when the display settings change for a monitor or output. The framework uses this callback to inform the application about potential issues with the current display configuration.

pOutput
A pointer to the IDXGIOutput interface of the output that changed. This parameter is optional and can be NULL.
pDesc
A pointer to a DXGI_OUTPUT_DESC structure that describes the output. This parameter is optional and can be NULL.
Return value
Returns a code that indicates success or error. If the application handles the change, it should return S_OK. If the application does not handle the change, it should return DXGI_ERROR_UNSUPPORTED.

Requirements

Header: Include dxgi.h

Library: Link with dxgi.lib

Minimum supported client: Windows 7

Minimum supported server: Windows Server 2008 R2

Product: Windows SDK