WinLoadTrustProvider  34NJQG5

[New - Windows NT]

The WinLoadTrustProvider function loads a trust provider DLL into the address space of the calling process. The function loads the trust provider that has registered itself as being able to process the specified action identifier. You can use WinLoadTrustProvider to determine whether the local computer has a trust provider that supports the specified action identifier. WinLoadTrustProvider does not perform the action.

BOOL WinLoadTrustProvider(

    GUID * ActionID

// pointer to a trust provider action identifier

   );

 

 

Parameters

ActionID

Pointer to a GUIDWWEPKN structure that identifies a trust provider action.

The WinTrust service is designed to work with trust providers implemented by third parties. Each trust provider provides its own unique set of action identifiers. For information about the action identifiers supported by a trust provider, see the documentation for that trust provider.

 

Return Values

If the function locates and loads a trust provider that supports the specified action identifier, the return value is a nonzero value.

If the function fails to locate or load the trust provider, the return value is zero. To get extended error information, call GetLastError.

Remarks

You do not need to call the WinLoadTrustProvider function before calling the WinVerifyTrust function to perform the specified action. WinVerifyTrust automatically loads the trust provider if it has not already been loaded. Preloading is recommended, however, because it reduces the time required for the first call to WinVerifyTrust.

See Also

GUID, WinVerifyTrust