IDXGIFactory2::RegisterStereoStatusWindow method

Registers an application window to receive notification messages of changes of stereo status.

Syntax

HRESULT RegisterStereoStatusWindow(
  HWND  WindowHandle,
  UINT  wMsg,
  DWORD *pdwCookie
);

Parameters

WindowHandle

The handle of the window to send a notification message to when stereo status change occurs.

wMsg

Identifies the notification message to send.

pdwCookie

A pointer to a key value that an application can pass to the IDXGIFactory2::UnregisterStereoStatus method to unregister the notification message that wMsg specifies.

Return Value

RegisterStereoStatusWindow returns:

  • S_OK if it successfully registered the window.
  • E_OUTOFMEMORY if memory is unavailable to complete the operation.
  • Possibly other error codes that are described in the DXGI_ERROR topic.

Platform Update for Windows 7:  On Windows 7 or Windows Server 2008 R2 with the Platform Update for Windows 7 installed, RegisterStereoStatusWindow fails with E_NOTIMPL. For more info about the Platform Update for Windows 7, see Platform Update for Windows 7.

Requirements

   
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps only]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header dxgi1_2.h
Library Dxgi.lib

See Also

IDXGIFactory2