Skip to content

Latest commit

 

History

History
129 lines (107 loc) · 3.75 KB

nf-strmif-ienumpins-clone.md

File metadata and controls

129 lines (107 loc) · 3.75 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:strmif.IEnumPins.Clone
IEnumPins::Clone (strmif.h)
The Clone method makes a copy of the enumerator with the same enumeration state.
Clone
Clone method [DirectShow]
Clone method [DirectShow]
IEnumPins interface
IEnumPins interface [DirectShow]
Clone method
IEnumPins.Clone
IEnumPins::Clone
IEnumPinsClone
dshow.ienumpins_clone
strmif/IEnumPins::Clone
dshow\ienumpins_clone.htm
dshow
946bb08e-6866-46b3-b2d7-de2ab6c5e608
4/26/2023
Clone, Clone method [DirectShow], Clone method [DirectShow],IEnumPins interface, IEnumPins interface [DirectShow],Clone method, IEnumPins.Clone, IEnumPins::Clone, IEnumPinsClone, dshow.ienumpins_clone, strmif/IEnumPins::Clone
strmif.h
Dshow.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Strmiids.lib
Windows
19H1
IEnumPins::Clone
strmif/IEnumPins::Clone
c++
APIRef
kbSyntax
COM
Strmiids.lib
Strmiids.dll
IEnumPins.Clone

IEnumPins::Clone

-description

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The Clone method makes a copy of the enumerator with the same enumeration state.

-parameters

-param ppEnum [out]

Receives a pointer to the IEnumPins interface of the new enumerator. The caller must release the interface.

-returns

Returns one of the following HRESULT

Return code Description
S_OK
Success.
E_OUTOFMEMORY
Insufficient memory.
E_POINTER
NULL pointer argument.
VFW_E_ENUM_OUT_OF_SYNC
The filter's state has changed and is now inconsistent with the enumerator.

-remarks

If the number of pins changes, the enumerator is no longer consistent with the filter, and the method returns VFW_E_ENUM_OUT_OF_SYNC. Discard any data obtained from previous calls to the enumerator, because it might be invalid. Update the enumerator by calling the IEnumPins::Reset method. You can then call the Clone method safely.

-see-also

Error and Success Codes

IEnumPins Interface