IEnumCERTVIEWATTRIBUTE::Clone

[This is preliminary documentation and subject to change.]

The Clone method creates a copy of the IEnumCERTVIEWATTRIBUTE object in its current state.

[VB] CEnumCERTVIEWATTRIBUTE Clone();
 
[JAVA] CEnumCERTVIEWATTRIBUTE Clone();
 
[C++] HRESULT Clone(
  IEnumCERTVIEWATTRIBUTE **ppenum  // out
);
 

Parameters

[VB][JAVA] The return value is a cloned IEnumCERTVIEWATTRIBUTE object.

[C++] ppenum
Points to a pointer of IEnumCERTVIEWATTRIBUTE type. This function will fail if ppenum is NULL.

Return Values

[VB][JAVA] The return value is a cloned IEnumCERTVIEWATTRIBUTE object.

[C++] The return value is an HRESULT. A value of S_OK indicates success.

Remarks

This function is used to clone the IEnumCERTVIEWATTRIBUTE object.

Example

// pEnumAttr is previously instantied IEnumCERTVIEWATTRIBUTE object
IEnumCERTVIEWATTRIBUTE *    pEnumAttr2 = NULL;
HRESULT    hr;
hr = pEnumAttr->Clone( &pEnumAttr2 );
if ( S_OK != hr )
    printf("Unable to clone IEnumCERTVIEWATTRIBUTE\n");
else
    // use cloned object as needed
    ///…
// done using cloned object, free memory
if ( NULL != pEnumAttr2 )
    pEnumAttr2->Release();
 

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in certview.h.
  Import Library: Use certidl.lib.