Performs a synchronous read.
HRESULT SyncRead( LONGLONG llPosition, LONG lLength, BYTE* pBuffer);
[in] Absolute file position.
[in] Number of bytes required.
[out] Where the data is written.
Returns an HRESULT value that depends on the implementation of the interface. Current DirectShow implementation return values include:
|VFW_E_BADALIGN||An invalid alignment was specified.|
|S_FALSE||Size changed (probably due to end of file).|
The SyncRead method works in a stopped state as well as in a running state. The read is not necessarily aligned. This method fails if the read is beyond the actual total length.
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.