Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
WintrustSetRegPolicyFlags function (wintrust.h)
The WintrustSetRegPolicyFlags function sets policy flags for a policy provider.
Note This function has no associated import library. You must use the LoadLibrary and GetProcAddress functions to dynamically link to Wintrust.dll.
Syntax
BOOL WintrustSetRegPolicyFlags(
[in] DWORD dwPolicyFlags
);
Parameters
[in] dwPolicyFlags
This parameter can be a bitwise combination of one or more of the following values.
| Value | Meaning |
|---|---|
|
Trust any test certificate. |
|
Check any test certificate for validity. |
|
Do not check the expiration date. |
|
Do not check revocation. |
|
If the source is offline, trust any individual certificates. |
|
If the source is offline, trust any commercial certificates. |
|
If the source is offline, trust any individual certificates. Do not use the user interface (UI). |
|
If the source is offline, trust any commercial certificates. Do not use the checking UI. |
|
Turn off verification of version 1.0 certificates. |
|
Ignore time stamp revocation checks. |
|
Allow only items in personal trust database. |
Return value
Returns nonzero if the policy flags were set successfully or zero otherwise.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP [desktop apps only] |
| Minimum supported server | Windows Server 2003 [desktop apps only] |
| Target Platform | Windows |
| Header | wintrust.h |
| Library | Wintrust.lib |
| DLL | Wintrust.dll |
See also
Feedback
Was this page helpful?
