Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

AVIFileCreateStream function

The AVIFileCreateStream function creates a new stream in an existing file and creates an interface to the new stream.

Syntax


STDAPI AVIFileCreateStream(
  PAVIFILE pfile,
  PAVISTREAM  *ppavi,
  AVISTREAMINFO  *psi
);

Parameters

pfile

Handle to an open AVI file.

ppavi

Pointer to the new stream interface.

psi

Pointer to a structure containing information about the new stream, including the stream type and its sample rate.

Return value

Returns zero if successful or an error otherwise. Unless the file has been opened with write permission, this function returns AVIERR_READONLY.

Remarks

This function starts a reference count for the new stream.

The argument pfile is a pointer to an IAVIFile interface. The argument ppavi is a pointer to an IAVIStream interface.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Vfw.h

Library

Vfw32.lib

DLL

Avifil32.dll

Unicode and ANSI names

AVIFileCreateStreamW (Unicode) and AVIFileCreateStreamA (ANSI)

See also

AVIFile Functions and Macros
AVIFile Functions
AVIStreamInfo

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.