Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetPrivateDataInterface
Collapse the table of content
Expand the table of content

ID3D11DeviceChild::SetPrivateDataInterface method

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

Syntax


HRESULT SetPrivateDataInterface(
  [in]                 REFGUID  guid,
  [in, optional] const IUnknown *pData
);

Parameters

guid [in]

Type: REFGUID

Guid associated with the interface.

pData [in, optional]

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.

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

See also

ID3D11DeviceChild

 

 

Community Additions

ADD
Show:
© 2015 Microsoft