ID3D11DeviceChild::SetPrivateDataInterface method (d3d11.h)
Associate an IUnknown-derived interface with this device child and associate that interface with an application-defined guid.
HRESULT SetPrivateDataInterface( [in] REFGUID guid, [in, optional] const IUnknown *pData );
Guid associated with the interface.
[in, optional] pData
Type: const IUnknown*
Pointer to an IUnknown-derived interface to be associated with the device child.
This method returns one of the following Direct3D 11 Return Codes.
When this method is called ::addref() will be called on the IUnknown-derived interface, and when the device child is destroyed ::release() will be called on the IUnknown-derived interface.