MFLoadSignedLibrary function (mfidl.h)

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

Syntax

HRESULT MFLoadSignedLibrary(
  [in]  LPCWSTR          pszName,
  [out] IMFSignedLibrary **ppLib
);

Parameters

[in] pszName

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

[out] ppLib

Receives a pointer to the IMFSignedLibrary interface for the library.

Return value

None

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.

Examples

The following example demonstrates how to load a signed library and retrieve the address of a function in that library.

IMFSignedLibrary *pLib;
hr = MFLoadSignedLibrary(TEST_PELOAD_FILE, &pLib);
if (SUCCEEDED(hr))
{
    PVOID functionAddress;
    hr = pLib->GetProcedureAddress("myFunctionName", &functionAddress);
}
//  Unload the library
pLib->Release();

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 mfidl.h
Library Mf.lib
DLL Mf.dll

See also

GetProcedureAddress

IMFSignedLibrary

Media Foundation Functions