ICertView::EnumCertViewColumn

[This is preliminary documentation and subject to change.]

The EnumCertViewColumn method obtains a pointer to the IEnumCERTVIEWCOLUMN interface.

[VB] CEnumCERTVIEWCOLUMN EnumCertViewColumn(
  Boolean fResultColumn
);
 
[JAVA] CEnumCERTVIEWCOLUMN EnumCertViewColumn(
  java.lang.Boolean fResultColumn
);
 
[C++] HRESULT EnumCertViewColumn(
  BOOL fResultColumn,           // in
  IEnumCERTVIEWCOLUMN **ppenum  // out
);
 

Parameters

fResultColumn
If this value is TRUE, the view is based on a result set; a value of FALSE means the view is based on the full database schema. A result set is used for customizing the view of the Certificate Server data.
[C++]ppenum
Pointer to a pointer of IEnumCERTVIEWCOLUMN type. This function will fail if ppenum is NULL.

Return Values

[VB][JAVA] The return value is an IEnumCERTVIEWCOLUMN object.

[C++] The return value is an HRESULT. A value of S_OK indicates success. Upon successful completion of this function, ppenum will point to a pointer of IEnumCERTVIEWCOLUMN type.

Remarks

The IEnumCERTVIEWCOLUMN object can be used to enumerate the view's columns and retrieve each column's information.

Example

// pCertView is previously instantiated pointer to ICertView
IEnumCERTVIEWCOLUMN *    pEnumCertViewCol = NULL;
HRESULT                  hr;
hr = pCertView->EnumCertViewColumn( TRUE, &pEnumCertViewCol );
if ( S_OK != hr )
    printf("Failed EnumCERTVIEWCOLUMN call!\n");
    // call error handler…
else
    // use pEnumCertViewCol to access IEnumCERTVIEWCOL methods
// done using object; free resources
if ( NULL != pEnumCertViewCol )
    pEnumCertViewCol->Release();
 

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certview.h.
  Import Library: Use certidl.lib.

See Also

IEnumCERTVIEWCOLUMN Interface