ID3D12Device::OpenSharedHandle method

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

Syntax

HRESULT OpenSharedHandle(
  HANDLE NTHandle,
  REFIID riid,
  void   **ppvObj
);

Parameters

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.

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

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

See Also

ID3D12Device

Multi-Adapter