ID3D11VideoContext::FinishSessionKeyRefresh method (d3d11.h)

Switches to a new session key.

Syntax

void FinishSessionKeyRefresh(
  [in] ID3D11CryptoSession *pCryptoSession
);

Parameters

[in] pCryptoSession

A pointer to the ID3D11CryptoSession interface.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This function can only be called when the D3D11_CONTENT_PROTECTION_CAPS_FRESHEN_SESSION_KEY cap is reported.

Before calling this method, call ID3D11VideoContext::StartSessionKeyRefresh. The StartSessionKeyRefresh method gets a random number from the driver, which is used to create a new session key. The new session key does not become active until the application calls FinishSessionKeyRefresh. After the application calls FinishSessionKeyRefresh, all protected surfaces are encrypted using the new session key.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header d3d11.h

See also

ID3D11VideoContext