Get the window through which the user controls the transition to and from full screen.
public:
HRESULT GetWindowAssociation(
HWND *pWindowHandle
)
pWindowHandle
Type: HWND *
[out] A pointer to a window handle.
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.
Note
If you call this API in a Session 0 process, it returns DXGI_ERROR_NOT_CURRENTLY_AVAILABLE.
Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).
Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).