IOCSPCAConfiguration::ErrorCode property

The ErrorCode property gets a code that identifies an error condition in a CA configuration. The default implementations of IOCSPAdmin and IOCSPCAConfigurationCollection set the initial error-condition value.

This property is read-only.

Syntax


HRESULT get_ErrorCode(
  [out] ULONG *pVal
);

Property value

A pointer to the error code.

Error codes

If the method succeeds, it returns S_OK.

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

If the method returns HRESULT_FROM_WIN32(ERROR_INVALID_STATE), either it failed to initialize a lock on the OCSPCAConfiguration object, or the object failed to initialize.

If the method returns E_INVALIDARG, the pVal parameter was set to NULL.

Remarks

The OCSP responder service returns an error code when it encounters a problem with a configuration. For the definition of a returned code, see Winerror.h in the Microsoft Windows Software Development Kit (SDK).

An OCSPCAConfiguration object internally stores the error code as an HRESULT with an initial value of E_PENDING. When IOCSPAdmin::SetConfiguration is called, the error code is reset to E_PENDING.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise [desktop apps only]

Header

Certadm.h (include Certserv.h)

IDL

Certadm.idl

Library

Certadm.lib

DLL

Certadm.dll

IID

IID_IOCSPCAConfiguration is defined as AEC92B40-3D46-433F-87D1-B84D5C1E790D

See also

IOCSPCAConfiguration

 

 

Show: