ICertConfig::Reset method (certcli.h)

The Reset method resets the configuration query state to point at the Certificate Services server configuration indexed on the specified configuration point. This method was first defined in the ICertConfig interface.

Each individual configuration indicates a specific Certificate Services server. Some Certificate Services servers may have multiple valid configurations in the configuration database.

Syntax

HRESULT Reset(
  [in]  LONG Index,
  [out] LONG *pCount
);

Parameters

[in] Index

Specifies the configuration point used by the configuration query to index a Certificate Services server configuration. The first configuration is index zero.

[out] pCount

A pointer to the number of configurations in the enterprise.

Return value

C++

If the method succeeds, the method returns S_OK, and the pCount parameter points to a Long that contains the number of configurations in the enterprise.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

The return value is the number of configurations in the enterprise.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header certcli.h (include Certsrv.h)
Library Certidl.lib
DLL Certcli.dll

See also

ICertConfig

ICertConfig2

Next