IRAPIStream::SetRapiStat

This method sets the timeout value for the IStream::Read method.

At a Glance

Header file: Rapi.h
Windows CE versions: 2.0 and later

Syntax

SetRapiStat( RAPISTREAMFLAG Flag, DWORD dwValue);

Parameters

Flag

Used to set properties for the timeout. Currently, the only supported value is STREAM_TIMEOUT_READ.

dwvalue

Specifies the value of the timeout.

Return Value

Returns S_OK if timeout value is set successfully, or returns Error_Invalid_Parameter otherwise.

Remarks

STREAM_TIMEOUT_READ allows setting timeouts on the IStream::Read method.