Index   Commented   Search   About

IAVIFile::GetStream

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

HRESULT GetStream(

PAVIFILE pf,

PAVISTREAM *ppStream,

DWORD fccType,

LONG lParam

);

Parameters

pf

Address of the interface to a file.

ppStream

Address to contain a pointer to the interface to a stream.

fccType

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

lParam

Stream number.

Return Values

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);

See Also

AVIFileGetStream
, IAVIFile::Open

Related Links

Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET

More Online Helps

Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun