Share via


IAVIEditStream::Cut

The Cut method removes a portion of a stream and places it in a temporary stream. Called when an application uses the EditStreamCut function.

HRESULT Cut(
  PAVISTREAM pavi,     
  LONG *plStart,       
  LONG *plLength,      
  PAVISTREAM ppResult  
);

Parameters

pavi

Pointer to the interface to the stream to cut.

plStart

Pointer to a buffer that receives the starting position of the operation.

plLength

Pointer to a buffer that receives the length, in frames, of the operation.

ppResult

Pointer to a buffer that receives a pointer to the interface to the new stream.

Return Values

Returns the HRESULT defined by OLE.

Remarks

For handlers written in C++, Cut has the following syntax:

HRESULT Cut(LONG *plStart, LONG *plLength, 
    PAVISTREAM *ppResult); 
 

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.
**  Library:** Use Vfw32.lib.

See Also

Custom File and Stream Handlers, Custom File and Stream Handler Interfaces, EditStreamCut