MFCreateProtectedEnvironmentAccess

Creates an IMFProtectedEnvironmentAccess object that allows content protection systems to perform a handshake with the protected environment.

Syntax

HRESULT MFCreateProtectedEnvironmentAccess(
         _Outptr_ IMFProtectedEnvironmentAccess **ppAccess
)  

Parameters

ppAccess
Type: Outptr IMFProtectedEnvironmentAccess **

Receives a pointer to the IMFProtectedEnvironmentAccess interface.

Return value

Type: HRESULT 

The function returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The function succeeded.

Refer to Media Foundation return codes.

Requirements

Header: Declared in mfidl.h.

Library: Use mf.lib.