ICertSrvSetup::SetDatabaseInformation method (casetup.h)

The SetDatabaseInformation method sets the database related information for the certification authority (CA) role.

Syntax

HRESULT SetDatabaseInformation(
  [in] const BSTR   bstrDBDirectory,
  [in] const BSTR   bstrLogDirectory,
  [in] const BSTR   bstrSharedFolder,
  [in] VARIANT_BOOL bForceOverwrite
);

Parameters

[in] bstrDBDirectory

A string that contains the name of the directory where the CA database files will be stored. This parameter must not be NULL or an empty string.

[in] bstrLogDirectory

A string that contains the name of the directory where the CA database log files will be stored. This parameter must not be NULL or an empty string.

[in] bstrSharedFolder

This parameter is reserved for future use and must be NULL or an empty string.

[in] bForceOverwrite

A value that indicates whether to overwrite any existing database files in the specified directory. A value of VARIANT_TRUE specifies to overwrite existing files.

Return value

None

Remarks

The SetDatabaseInformation method creates the specified directories if they do not exist.

Upon failure, the SetDatabaseInformation method might set additional error information in the CAErrorId and CAErrorString properties.

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