Share via


IRAPIStream::SetRapiStat

Send Feedback

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

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 Values

  • 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

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: rapi.h
Library: rapi.lib

See Also

IRAPIStream | IRAPIStream::GetRapiStat | IStream::Read | IStream::Stat

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.