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