IDXGIAdapter3::RegisterVideoMemoryBudgetChangeNotificationEvent method

This method establishes a correlation between a CPU synchronization object and the budget change event.

Syntax

HRESULT RegisterVideoMemoryBudgetChangeNotificationEvent(
  HANDLE hEvent,
  DWORD  *pdwCookie
);

Parameters

hEvent

Type: HANDLE

Specifies a HANDLE for the event.

pdwCookie

Type: DWORD*

A key value for the window or event to unregister. The IDXGIAdapter3::RegisterHardwareContentProtectionTeardownStatusEvent method returns this value.

Return Value

Type: HRESULT

This method returns an HRESULT success or error code.

Remarks

Instead of calling QueryVideoMemoryInfo regularly, applications can use CPU synchronization objects to efficiently wake threads when budget changes occur.

Requirements

   
Target Platform Windows
Header dxgi1_4.h (include DXGI1_3.h)
Library Dxgi.lib
DLL Dxgi.dll

See Also

IDXGIAdapter3