[This is preliminary documentation and subject to change.]
The Clone method creates a copy of the IEnumCERTVIEWEXTENSION object in its current state.
[VB] CEnumCERTVIEWEXTENSION Clone();
[JAVA] IEnumCERTVIEWEXTENSION Clone(
OUT IEnumCERTVIEWEXTENSION **ppenum
);
[C++] HRESULT Clone(
IEnumCERTVIEWEXTENSION **ppenum // out
);
[VB][JAVA] The return value is a cloned IEnumCERTVIEWEXTENSION object.
[C++] The return value is an HRESULT. A value of S_OK indicates success.
This function is used to clone the IEnumCERTVIEWEXTENSION object.
IEnumCERTVIEWEXTENSION * pEnumExt2 = NULL;
HRESULT hr;
// pEnumExt is previously instantiated IEnumCERTVIEWEXTENSION object
hr = pEnumExt->Clone( &pEnumExt2 );
if ( S_OK != hr )
printf("Unable to clone IEnumCERTVIEWEXTENSION\n");
else
// use cloned object as needed
//…
// done using cloned object, free memory
if ( NULL != pEnumExt2 )
pEnumExt2->Release();
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in certview.h.
Import Library: Use certidl.lib.