ID3D11DeviceChild::SetPrivateDataInterface method

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

Syntax

HRESULT SetPrivateDataInterface(
  REFGUID        guid,
  const IUnknown *pData
);

Parameters

guid

Type: REFGUID

Guid associated with the interface.

pData

Type: const IUnknown*

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

When this method is called ::addref() will be called on the IUnknown-derived interface, and when the device child is detroyed ::release() will be called on the IUnknown-derived interface.

Requirements

   
Target Platform Windows
Header d3d11.h
Library D3D11.lib

See Also

ID3D11DeviceChild