ID3D12Device7::CreateProtectedResourceSession1 method (d3d12.h)

CreateProtectedResourceSession1 revises the ID3D12Device4::CreateProtectedResourceSession method with provision (in the structure passed via the pDesc parameter) for a globally unique identifier (GUID) that indicates the type of protected resource session.

Calling ID3D12Device4::CreateProtectedResourceSession is equivalent to calling ID3D12Device7::CreateProtectedResourceSession1 with the D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED GUID.

Syntax

HRESULT CreateProtectedResourceSession1(
  const D3D12_PROTECTED_RESOURCE_SESSION_DESC1 *pDesc,
  REFIID                                       riid,
  void                                         **ppSession
);

Parameters

pDesc

Type: _In_ const D3D12_PROTECTED_RESOURCE_SESSION_DESC1*

A pointer to a constant D3D12_PROTECTED_RESOURCE_SESSION_DESC1 structure, describing the session to create.

riid

Type: _In_ REFIID

The GUID of the interface to a protected session. Most commonly, ID3D12ProtectedResourceSession1, although it may be any GUID for any interface. If the protected session object doesn't support the interface for this GUID, the getter will return E_NOINTERFACE.

ppSession

Type: _COM_Outptr_ void**

A pointer to a memory block that receives a pointer to the session for the given protected session (the specific interface type returned depends on riid).

Requirements

   
Header d3d12.h
Library d3d12.lib
DLL d3d12.dll