MFLoadSignedLibrary

Loads a dynamic link library that is signed for the protected environment.

Syntax

HRESULT MFLoadSignedLibrary(
         LPCWSTR pszName,
         _Outptr_ IMFSignedLibrary **ppLib
)  

Parameters

pszName
Type: LPCWSTR 

The name of the dynamic link library to load. This dynamic link library must be signed for the protected environment.

ppLib
Type: Outptr IMFSignedLibrary **

Receives a pointer to the IMFSignedLibrary interface for the library.

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.

Remarks

A singlemodule load count is maintained on the dynamic link library (as it is with LoadLibrary). This load count is freed when the final release is called on the IMFSignedLibrary object.

Requirements

Header: Declared in mfidl.h.

Library: Use mf.lib.