Share via


IRAPIStream::SetRapiStat

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This method sets the time-out value for the IStream::Read method.

Syntax

HRESULT SetRapiStat(
  RAPISTREAMFLAG Flag,
  DWORD dwValue
);

Parameters

  • Flag
    [in] Used to set properties for the time-out. Currently, the only supported value is STREAM_TIMEOUT_READ.
  • dwValue
    [in] Specifies the time-out value, in seconds.

Return Value

  • S_OK
    The time-out value was retrieved successfully.
  • E_INVALIDARG
    The value of Flag was something other than STREAM_TIMEOUT_READ.
  • E_PENDING
    Asynchronous Storage only: Part or all of the stream's data is currently unavailable.
  • STG_E_ACCESSDENIED
    Insufficient access privileges for this stream object.

Remarks

IRAPIStream::SetRapiStat is modeled after IStream::Stat.

Requirements

Header rapi.h
Library rapi.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also

Reference

IRAPIStream
IRAPIStream::GetRapiStat

Other Resources

IStream::Read
IStream::Stat