Skip to content

Latest commit

 

History

History
121 lines (100 loc) · 3.41 KB

nf-mfobjects-imfsample-copytobuffer.md

File metadata and controls

121 lines (100 loc) · 3.41 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:mfobjects.IMFSample.CopyToBuffer
IMFSample::CopyToBuffer (mfobjects.h)
Copies the sample data to a buffer. This method concatenates the valid data from all of the buffers of the sample, in order.
CopyToBuffer
CopyToBuffer method [Media Foundation]
CopyToBuffer method [Media Foundation]
IMFSample interface
IMFSample interface [Media Foundation]
CopyToBuffer method
IMFSample.CopyToBuffer
IMFSample::CopyToBuffer
c8a23e0a-ed2f-449d-b834-f60f383d0b5e
mf.imfsample_copytobuffer
mfobjects/IMFSample::CopyToBuffer
mf\imfsample_copytobuffer.htm
mf
c8a23e0a-ed2f-449d-b834-f60f383d0b5e
12/05/2018
CopyToBuffer, CopyToBuffer method [Media Foundation], CopyToBuffer method [Media Foundation],IMFSample interface, IMFSample interface [Media Foundation],CopyToBuffer method, IMFSample.CopyToBuffer, IMFSample::CopyToBuffer, c8a23e0a-ed2f-449d-b834-f60f383d0b5e, mf.imfsample_copytobuffer, mfobjects/IMFSample::CopyToBuffer
mfobjects.h
Mfidl.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Mfuuid.lib
Windows
19H1
IMFSample::CopyToBuffer
mfobjects/IMFSample::CopyToBuffer
c++
APIRef
kbSyntax
COM
mfuuid.lib
mfuuid.dll
IMFSample.CopyToBuffer

IMFSample::CopyToBuffer

-description

Copies the sample data to a buffer. This method concatenates the valid data from all of the buffers of the sample, in order.

-parameters

-param pBuffer [in]

Pointer to the IMFMediaBuffer interface of the destination buffer. The buffer must be large enough to hold the valid data in the sample. To get the size of the data in the sample, call IMFSample::GetTotalLength.

-returns

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.
E_INVALIDARG
NULL pointer argument.
MF_E_BUFFERTOOSMALL
The buffer is not large enough to contain the data.

-remarks

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP with Service Pack 2 (SP2) and later.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (October 2006 Update Rollup for Windows XP Media Center Edition) installed.

-see-also

IMFSample

Media Samples