IEnumCERTVIEWROW::EnumCertViewColumn

[This is preliminary documentation and subject to change.]

The EnumCertViewColumn method obtains an instance of the IEnumCERTVIEWCOLUMN object.

[VB] CEnumCERTVIEWCOLUMN EnumCertViewColumn();
 
[JAVA] CEnumCERTVIEWCOLUMN EnumCertViewColumn();
 
[C++] HRESULT EnumCertViewColumn(
  IEnumCERTVIEWCOLUMN **ppenum  // out
);
 

Parameters

[C++] ppenum
Pointer to pointer of IEnumCERTVIEWCOLUMN type.

Return Values

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

[C++] The return value is an HRESULT. A value of S_OK indicates success.

Remarks

The IEnumCERTVIEWCOLUMN object is used to enumerate the view's columns for the purposes of retrieving data elements.

Example

// pEnumRow is previously instantiated pointer to IEnumCERTVIEWROW
HRESULT                  hr;
LONG                     Index;
IEnumCERTVIEWCOLUMN *    pEnumCol = NULL;
// obtain enumerator for columns
hr = pEnumRow->EnumCertViewColumn( &pEnumCol );
if ( FAILED( hr ))
{
    printf("Failed EnumCertViewColumn - %x\n", hr );
    goto error;
}
// enumerate each column
while ( S_FALSE != pEnumCol->Next( &Index ) )
{
    // do something with this column
    //…
}
error:

// free resources
if ( NULL != pEnumCol )
    pEnumCol->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