Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IWICStream::InitializeFromIStreamRegion method

Initializes the stream as a substream of another stream.

Syntax


HRESULT InitializeFromIStreamRegion(
  [in]  IStream *pIStream,
  [in]  ULARGE_INTEGER ulOffset,
  [in]  ULARGE_INTEGER ulMaxSize
);

Parameters

pIStream [in]

Type: IStream*

Pointer to the input stream.

ulOffset [in]

Type: ULARGE_INTEGER

The stream offset used to create the new stream.

ulMaxSize [in]

Type: ULARGE_INTEGER

The maximum size of the stream.

Return value

Type: HRESULT

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

Remarks

The stream functions with its own stream position, independent of the underlying stream but restricted to a region. All seek positions are relative to the sub region. It is allowed, though not recommended, to have multiple writable sub streams overlapping the same range.

Requirements

Minimum supported client

Windows XP with SP2, Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Wincodec.h

IDL

Wincodec.idl

Library

Windowscodecs.lib

DLL

Windowscodecs.dll

 

 

Community Additions

Show:
© 2014 Microsoft