MFLoadSignedLibrary function
Loads a dynamic link library that is signed for the protected environment.
Syntax
STDAPI MFLoadSignedLibrary( _In_ LPCWSTR pszName, _Out_ IMFSignedLibrary **ppLib );
Parameters
- pszName [in]
-
The name of the dynamic link library to load. This dynamic link library must be signed for the protected environment.
- ppLib [out]
-
Receives a pointer to the IMFSignedLibrary interface for the library.
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
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also