ID3D11Device::SetPrivateDataInterface Method

Associates an IUnknown-derived interface with this device child and associate that interface with an application-defined guid.

Not supported on the Xbox One Direct3D Monolithic runtime.

Syntax

public:
HRESULT SetPrivateDataInterface(
         REFGUID guid,
         const IUnknown *pData
)  

Parameters

guid
Type: REFGUID 

[in] Guid associated with the interface.

pData
Type: IUnknown *

[in, optional] Pointer to an IUnknown-derived interface to be associated with the device child.

Return value

Type: HRESULT 

This method returns one of the following Direct3D 11 return codes.

Remarks

Xbox One: This method is not supported on the Direct3D Monolithic runtime.

Requirements

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

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

See also

ID3D11Device

ID3D11Device Members