ICertSrvSetup::InitializeDefaults method (casetup.h)

The InitializeDefaults method initializes a CCertSrvSetup object with default values to enable installation of the Certification Authority role. To install a CA role, this method must be called before using the CCertSrvSetup object. For information about default values, see CASetupProperty.

Syntax

HRESULT InitializeDefaults(
  [in] VARIANT_BOOL bServer,
  [in] VARIANT_BOOL bClient
);

Parameters

[in] bServer

A value that indicates whether a CA will be installed on the computer. A VARIANT_TRUE value indicates that the role will be installed. Neither the Certification Authority nor Certification Authority Web Enrollment roles can be previously installed on the computer.

[in] bClient

A value that indicates whether a Certification Authority Web Enrollment role will be installed on the computer. A VARIANT_TRUE value indicates that the role will be installed. This role cannot be previously installed on the computer.

Return value

None

Remarks

If the policy statement file "CAPolicy.inf" is installed, InitializeDefaults processes it.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows ServerĀ 2008 [desktop apps only]
Target Platform Windows
Header casetup.h
DLL Certocm.dll

See also

ICertSrvSetup