IDXGIFactory::GetWindowAssociation method

Get the window through which the user controls the transition to and from full screen.

Syntax

HRESULT GetWindowAssociation(
  HWND *pWindowHandle
);

Parameters

pWindowHandle

Type: HWND*

A pointer to a window handle.

Return Value

Type: HRESULT

Returns a code that indicates success or failure. S_OK indicates success, DXGI_ERROR_INVALID_CALL indicates pWindowHandle was passed in as NULL.

Remarks

Note  If you call this API in a Session 0 process, it returns DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.
 

Requirements

   
Target Platform Windows
Header dxgi.h
Library DXGI.lib

See Also

DXGI Interfaces

IDXGIFactory