IDXGIFactory::GetWindowAssociation Method

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

Syntax

public:
HRESULT GetWindowAssociation(
         HWND *pWindowHandle
)  

Parameters

pWindowHandle
Type: HWND *

[out] 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

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIFactory

IDXGIFactory Members