Skip to main content
Creates an object that represents a session for content protection. You can then provide that session when you’re creating resource or heap objects, to indicate that they should be protected.
Memory contents can’t be transferred from a protected resource to an unprotected resource.

Syntax

Parameters

pDesc [in]
Type: const D3D12_PROTECTED_RESOURCE_SESSION_DESC *
A pointer to a constant D3D12_PROTECTED_RESOURCE_SESSION_DESC structure, describing the session to create. riid [in]
Type: const IID &
A reference to the globally unique identifier (GUID) of the ID3D12ProtectedResourceSession interface. ppSession [out]
Type: void **
A pointer to a memory block that receives an ID3D12ProtectedResourceSession interface pointer to the created session object.

Return value

Type: HRESULT

Remarks

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles

See Also

Last modified on August 20, 2026