ID3D12Device::OpenSharedHandle method
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
- NTHandle [in]
-
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 [out, optional]
-
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
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|
See also