This topic has not yet been rated - Rate this topic

WintrustSetRegPolicyFlags function

Applies to: desktop apps only

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 WINAPI WintrustSetRegPolicyFlags(
  __in  DWORD dwPolicyFlags
);

Parameters

dwPolicyFlags [in]

This parameter can be a bitwise combination of one or more of the following values.

ValueMeaning
WTPF_TRUSTTEST

Trust any test certificate.

WTPF_TESTCANBEVALID

Check any test certificate for validity.

WTPF_IGNOREEXPIRATION

Use expiration date.

WTPF_IGNOREREVOKATION

Do revocation check.

WTPF_OFFLINEOK_IND

If the source is offline, trust any individual certificates.

WTPF_OFFLINEOK_COM

If the source is offline, trust any commercial certificates.

WTPF_OFFLINEOKNBU_IND

If the source is offline, trust any individual certificates. Do not use the user interface (UI).

WTPF_OFFLINEOKNBU_COM

If the source is offline, trust any commercial certificates. Do not use the checking UI.

WTPF_VERIFY_V1_OFF

Turn off verification of version 1.0 certificates.

WTPF_IGNOREREVOCATIONONTS

Ignore time stamp revocation checks.

WTPF_ALLOWONLYPERTRUST

Allow only items in personal trust database.

 

Return value

Returns nonzero if the policy flags were set successfully or zero otherwise.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wintrust.h

DLL

Wintrust.dll

See also

WintrustGetRegPolicyFlags

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ