IEnumNetworkConnections::Clone method (netlistmgr.h)

The Clone method creates an enumerator that contains the same enumeration state as the enumerator currently in use.

Syntax

HRESULT Clone(
  [out] IEnumNetworkConnections **ppEnumNetwork
);

Parameters

[out] ppEnumNetwork

Pointer to new IEnumNetworkConnections interface instance.

Return value

Returns S_OK if the method succeeds. Otherwise, the method returns one of the following values.

Return code Description
E_POINTER
The ppEnum parameter is not a valid pointer.
E_OUTOFMEMORY
Insufficient memory exists to perform the operation.
E_UNEXPECTED
Failed for unknown reasons.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header netlistmgr.h

See also

IEnumNetworkConnections