ID3D12Device::OpenSharedHandle method (d3d12.h)

Opens a handle for shared resources, shared heaps, and shared fences, by using HANDLE and REFIID.

Syntax

HRESULT OpenSharedHandle(
  [in]            HANDLE NTHandle,
                  REFIID riid,
  [out, optional] void   **ppvObj
);

Parameters

[in] NTHandle

Type: HANDLE

The handle that was output by the call to ID3D12Device::CreateSharedHandle.

riid

Type: REFIID

The globally unique identifier (GUID) for one of the following interfaces:

The REFIID, or GUID, of the interface can be obtained by using the __uuidof() macro. For example, __uuidof(ID3D12Heap) will get the GUID of the interface to a resource.

[out, optional] ppvObj

Type: void**

A pointer to a memory block that receives a pointer to one of the following interfaces:

Return value

Type: HRESULT

This method returns one of the Direct3D 12 Return Codes.

Requirements

Requirement Value
Target Platform Windows
Header d3d12.h
Library D3D12.lib
DLL D3D12.dll

See also

ID3D12Device

Multi-adapter systems