The Write method writes data to a stream. Called when an application uses the AVIStreamWrite function.
HRESULT Write( LONG lStart, LONG lSamples, LPVOID lpBuffer, LONG cbBuffer, DWORD dwFlags, LONG *plSampWritten, LONG *plBytesWritten );
Starting sample or frame number to write.
Number of samples to write.
Pointer to the buffer for the data.
Size, in bytes, of the buffer specified by lpBuffer.
Applicable flags. The AVIF_KEYFRAME flag is defined and indicates that this frame contains all the information needed for a complete image.
Pointer to a buffer used to contain the number of samples written.
Pointer to a buffer that receives the number of bytes written.
Returns the HRESULT defined by OLE.
For handlers written in C++, Write has the following syntax:
HRESULT Write(LONG lStart, LONG lSamples, LPVOID lpBuffer, LONG cbBuffer, DWORD dwFlags, LONG *plSampWritten, LONG *plBytesWritten);
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|