[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
);
[VB][JAVA] The return value is a IEnumCERTVIEWEXTENSION object.
[C++] The return value is an HRESULT. A value of S_OK indicates success.
The IEnumCERTVIEWEXTENSION object is used to enumerate the view's extensions.
// 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();
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certview.h.
Import Library: Use certidl.lib.
IEnumCERTVIEWEXTENSION Interface