共用方式為


IEnumDebugPortSuppliers2::Clone

Returns a copy of the current enumeration as a separate object.

HRESULT Clone(
   IEnumDebugPortSuppliers2** ppEnum
);
int Clone(
   out IEnumDebugPortSuppliers2 ppEnum
);

Parameters

  • ppEnum
    [out] Returns a copy of this enumeration as a separate object.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

The copy of the enumeration has the same state as the original at the time this method is called. However, the copy's and the original's states are separate and can be changed individually.

See Also

Reference

IEnumDebugPortSuppliers2