Edit

Share via


IDXGIObject::SetPrivateDataInterface method (dxgi.h)

Set an interface in the object's private data.

Syntax

HRESULT SetPrivateDataInterface(
  [in] REFGUID        Name,
  [in] const IUnknown *pUnknown
);

Parameters

[in] Name

Type: REFGUID

A GUID identifying the interface.

[in] pUnknown

Type: const IUnknown*

A pointer to the IUnknown-derived interface to be associated with the device object. Its reference count is incremented when set, and decremented when either the IDXGIObject is destroyed, or when the data is overwritten by calling SetPrivateData or SetPrivateDataInterface with the same GUID.

Return value

Type: HRESULT

Returns one of the following DXGI_ERROR.

Requirements

Requirement Value
Target Platform Windows
Header dxgi.h
Library DXGI.lib

See also

DXGI Interfaces

IDXGIObject