Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IAVIFile::GetStream method

The GetStream method opens a stream by accessing it in a file. Called when an application uses the AVIFileGetStream function.

Syntax


HRESULT GetStream(
  PAVIFILE pf,
  PAVISTREAM *ppStream,
  DWORD fccType,
  LONG lParam
);

Parameters

pf

Pointer to the interface to a file.

ppStream

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

fccType

Four-character code indicating the type of stream to locate.

lParam

Stream number.

Return value

Returns the HRESULT defined by OLE.

Remarks

It is typically easier to implement this method by creating all of the stream objects in advance by using the IAVIFile::Open method. Then, this method accesses the interface to the specified stream.

Remember to increment the reference count maintained by the AddRef method for the stream when this method is used.

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



HRESULT GetStream(PAVISTREAM *ppStream, 
    DWORD fccType, LONG lParam); 
 


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

See also

Custom File and Stream Handlers
Custom File and Stream Handler Interfaces

 

 

Community Additions

Show:
© 2014 Microsoft