IRandomAccessStream::GetInputStreamAt method

Gets a byte reader that's positioned at the specified offset.

Syntax

HRESULT GetInputStreamAt(
  [in]          ULONGLONG    position,
  [out, retval] IInputStream **stream
);

Parameters

  • position [in]
    The offset, in bytes, from the start of the stream.

  • stream [out, retval]
    A byte reader that starts at position bytes from the start of the random access stream.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Robytestream.h

IDL

Robytestream.idl

See also

IRandomAccessStream

IInputStream