|Microsoft DirectX 9.0|
The SyncRead method performs a synchronous read. The method blocks until the request is completed. The file positions and the buffer address do not have to be aligned. If the request is not aligned, the method performs a buffered read operation.
HRESULT SyncRead( LONGLONG llPosition, LONG lLength, BYTE *pBuffer );
[in] Specifies the byte offset at which to begin reading. The method fails if this value is beyond the end of the file.
[in] Specifies the number of bytes to read.
[out] Pointer to a buffer that receives the data.
Returns an HRESULT value. Possible values include the following.
|S_FALSE||Retrieved fewer bytes than requested. (Probably the end of the file was reached.)|
This method works even if the filter is stopped.