Export (0) Print
Expand All

IEnumCERTVIEWEXTENSION::Clone method

The Clone method creates a copy of the extension-enumeration sequence.

Syntax


HRESULT Clone(
  [out]  IEnumCERTVIEWEXTENSION **ppenum
);

Parameters

ppenum [out]

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

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certview.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certadm.dll

IID

IID_IEnumCERTVIEWEXTENSION is defined as e7dd1466-7653-11d1-9bde-00c04fb683fa

See also

IEnumCERTVIEWEXTENSION

 

 

Community Additions

ADD
Show:
© 2014 Microsoft