IEnumCERTVIEWROW::EnumCertViewExtension

[This is preliminary documentation and subject to change.]

The EnumCertViewExtension method obtains an instance of the IEnumCERTVIEWEXTENSION object.

[VB] CEnumCERTVIEWEXTENSION EnumCertViewExtension(
  Long Flags
);
 
[JAVA] CEnumCERTVIEWEXTENSION EnumCertViewExtension(
  int Flags
);
 
[C++] EnumCertViewExtension(
  LONG Flags,                     // in
  IEnumCERTVIEWEXTENSION **ppenum // out
);
 

Parameters

Flags
LONG value. Must be zero.
[C++] ppenum
Pointer to pointer of IEnumCERTVIEWEXTENSION type.

Return Values

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

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

Remarks

The IEnumCERTVIEWEXTENSION object is used to enumerate the view's extensions.

Example

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

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

IEnumCERTVIEWEXTENSION Interface