Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ID3D10DeviceChild::SetPrivateDataInterface method

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

Syntax


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

Parameters

guid [in]

Type: REFGUID

Guid associated with the interface.

pData [in]

Type: const IUnknown*

Pointer to an IUnknown-derived interface to be associated with the device.

Return value

Type: HRESULT

This method returns one of the following Direct3D 10 Return Codes.

Remarks

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

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10DeviceChild
ID3D10Device Interface

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.