Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IDXGIObject::SetPrivateDataInterface method

Set an interface in the object's private data.

Syntax


HRESULT SetPrivateDataInterface(
  [in]  REFGUID Name,
  [in]  const IUnknown *pUnknown
);

Parameters

Name [in]

Type: REFGUID

A GUID identifying the interface.

pUnknown [in]

Type: const IUnknown*

The interface to set.

Return value

Type: HRESULT

Returns one of the following DXGI_ERROR.

Remarks

This API associates an interface pointer with the object.

When the interface is set its reference count is incremented. When the data are overwritten (by calling SPD or SPDI with the same GUID) or the object is destroyed, ::Release() is called and the interface's reference count is decremented.

Windows Phone 8: This API is supported.

Requirements

Header

DXGI.h

Library

DXGI.lib

See also

IDXGIObject
DXGI Interfaces

 

 

Community Additions

Show:
© 2014 Microsoft