EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

AVIStreamOpenFromFile function

The AVIStreamOpenFromFile function opens a single stream from a file.

Syntax


STDAPI AVIStreamOpenFromFile(
  PAVISTREAM *ppavi,
  LPCTSTR szFile,
  DWORD fccType,
  LONG lParam,
  UINT mode,
  CLSID  *pclsidHandler
);

Parameters

ppavi

Pointer to a buffer that receives the new stream handle.

szFile

Null-terminated string containing the name of the file to open.

fccType

Four-character code indicating the type of stream to be opened. Zero indicates that any stream can be opened. The following definitions apply to the data commonly found in AVI streams:

Value Description
streamtypeAUDIOIndicates an audio stream.
streamtypeMIDIIndicates a MIDI stream.
streamtypeTEXTIndicates a text stream.
streamtypeVIDEOIndicates a video stream.

 

lParam

Stream of the type specified in fccType to access. This parameter is zero-based; use zero to specify the first occurrence.

mode

Access mode to use when opening the file. This function can open only existing streams, so the OF_CREATE mode flag cannot be used. For more information about the available flags for the mode parameter, see the OpenFile function.

pclsidHandler

Pointer to a class identifier of the handler you want to use. If the value is NULL, the system chooses one from the registry based on the file extension or the file RIFF type.

Return value

Returns zero if successful or an error otherwise.

Remarks

This function calls the AVIFileOpen, AVIFileGetStream, and AVIFileRelease functions.

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

AVIStreamOpenFromFileW (Unicode) and AVIStreamOpenFromFileA (ANSI)

See also

AVIFile Functions and Macros
AVIFile Functions

 

 

Adiciones de comunidad

Mostrar:
© 2014 Microsoft