IRAPIStream::SetRapiStat

The IRAPIStream::SetRapiStat method sets the timeout value for the IStream::Read method.

Syntax

SetRapiStat(
    RAPISTREAMFLAG Flag,
    DWORD dwValue
    
);

At a Glance

Header file: rapi.h
Platforms: H/PC
Versions: 2.0 and later

Parameters

Flag
Used to set properties for the timeout. Currently the only supported value is STREAM_TIMEOUT_READ.
Dwvalue
Value of the timeout.

Remarks

Currently, the only supported flag, STREAM_TIMEOUT_READ, allows setting timeouts on the IStream::Read method:

Return Value

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