This topic has not yet been rated - Rate this topic

ICertView2::SetTable method

Applies to: desktop apps only

The SetTable method specifies which Certificate Services database table is used for subsequent calls to the methods of the ICertView2 interface.

Syntax


HRESULT SetTable(
  [in]  LONG Table
);

Parameters

Table [in]

Specifies the Certificate Services database table to use for subsequent calls. This parameter must be one of the following values.

ValueMeaning
CVRC_TABLE_ATTRIBUTES

The attributes table is used for subsequent calls.

CVRC_TABLE_CRL

The certificate revocation list (CRL) table is used for subsequent calls.

CVRC_TABLE_EXTENSIONS

The extensions table is used for subsequent calls.

CVRC_TABLE_REQCERT

The table of pending requests, denied requests, issued certificates, and revoked certificates is used for subsequent calls.

 

Return value

VB

If the method succeeds, the method 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.

Remarks

Before calling the SetTable method, it is necessary to establish a connection with a Certificate Services server by calling the OpenConnection method first. After the OpenConnection and SetTable calls are made, subsequent calls to the ICertView2 interface methods will use the Certificate Services database table specified by the SetTable method.

If the SetTable method is not called, then the default table CVRC_TABLE_REQCERT is used.

Examples


HRESULT hr;

// Specify the certificate revocation list table.
hr = pCertView2->SetTable(CVRC_TABLE_CRL);
if (FAILED(hr))
{
    printf("Failed SetTable\n");
    exit(1);  // Or other error action.
}

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003

Header

Certview.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certadm.dll

IID

IID_ICertView2 is defined as d594b282-8851-4b61-9c66-3edadf848863

 

 

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