IEnumCERTVIEWEXTENSION::Clone method (certview.h)
The Clone method creates a copy of the extension-enumeration sequence.
Syntax
HRESULT Clone(
[out] IEnumCERTVIEWEXTENSION **ppenum
);
Parameters
[out] ppenum
A pointer to a pointer of IEnumCERTVIEWEXTENSION type. This method will fail if the ppenum parameter is NULL.
Return value
C++
If the method succeeds, the method returns S_OK.If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
VB
The return value is a cloned extension-enumeration sequence object.Remarks
The extension-enumeration sequence object is obtained by a call to the IEnumCERTVIEWROW::EnumCertViewExtension method.
Examples
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();
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | certview.h (include Certsrv.h) |
Library | Certidl.lib |
DLL | Certadm.dll |