IDXGIFactory7::RegisterAdaptersChangedEvent method (dxgi1_6.h)

Registers to receive notification of changes whenever the adapter enumeration state changes.

Syntax

HRESULT RegisterAdaptersChangedEvent(
  [in]      HANDLE hEvent,
  [in, out] DWORD  *pdwCookie
);

Parameters

[in] hEvent

A handle to the event object.

[in, out] pdwCookie

A key value for the registered event.

Return value

Returns S_OK if successful; an error code otherwise.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1809 [desktop apps only]
Minimum supported server Windows Server, version 1709 [desktop apps only]
Target Platform Windows
Header dxgi1_6.h
Library Dxgi.lib

See also

IDXGIFactory7

UnregisterAdaptersChangedEvent