IDXGIObject::SetPrivateDataInterface Method

Set an interface in the object’s private data.

Syntax

public:
HRESULT SetPrivateDataInterface(
         REFGUID Name,
         const IUnknown *pUnknown
)  

Parameters

Name
Type: REFGUID 

[in] A GUID identifying the interface.

pUnknown
Type: IUnknown *

[in] The interface to set.

Return value

Type: HRESULT 

Returns one of the following DXGI_ERROR.

Remarks

This API associates an interface pointer with the object.

When the interface is set its reference count is incremented. When the data are overwritten (by calling SPD or SPDI with the same GUID) or the object is destroyed, ::Release() is called and the interface’s reference count is decremented.

Requirements

Header: Declared in d3d11_x.h (dxgi.h on other Windows platforms).

Library: Use d3d11_x.lib (dxgi.lib on other Windows platforms).

See also

IDXGIObject

IDXGIObject Members