EditStreamCopy

The EditStreamCopy function copies an editable stream (or a portion of it) into a temporary stream.

STDAPI EditStreamCopy(
  PAVISTREAM pavi,       
  LONG * plStart,        
  LONG * plLength,       
  PAVISTREAM * ppResult  
);

Parameters

pavi

Handle to the stream being copied.

plStart

Starting position within the stream being copied. The starting position is returned.

plLength

Amount of data to copy from the stream referenced by pavi. The length of the copied data is returned.

ppResult

Pointer to a buffer that receives the handle created for the new stream.

Return Values

Returns zero if successful or an error otherwise.

Remarks

The stream that is copied must be created by the CreateEditableStream function or one of the stream editing functions.

The temporary stream can be treated as any other AVI stream.

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

AVIFile Functions and Macros, AVIFile Functions, CreateEditableStream

Show: