IDXGIOutput::SetDisplaySurface method (dxgi.h)
Changes the display mode.
HRESULT SetDisplaySurface( IDXGISurface *pScanoutSurface );
A pointer to a surface (see IDXGISurface) used for rendering an image to the screen. The surface must have been created as a back buffer (DXGI_USAGE_BACKBUFFER).
Returns one of the DXGI_ERROR values.
IDXGIOutput::SetDisplaySurface should not be called directly by applications, since results will be unpredictable. It is called implicitly by the DXGI swap chain object during full-screen transitions, and should not be used as a substitute for swap-chain methods.DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.