IDMLObject::SetPrivateDataInterface method (directml.h)

Associates an IUnknown-derived interface with the DirectML device object, and associates that interface with an application-defined GUID. This method is thread-safe.

Syntax

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

Parameters

[in] guid

Type: REFGUID

The GUID to associate with the interface.

[in, optional] data

Type: const IUnknown*

A pointer to the IUnknown-derived interface to be associated with the device object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Target Platform Windows
Header directml.h
Library DirectML.lib
DLL DirectML.dll

See also

IDMLObject