Home COM GDI+ WebBrowser Data Access

ISequentialStream Interface

 

IID_ISequentialStream

{0C733A30-2A1C-11CE-ADE5-00AA0044773D}

 

 

The ISequentialStream interface supports simplified sequential access to stream objects. The IStream interface inherits its Read and Write methods from ISequentialStream.

 

Call the methods of the ISequentialStream interface from a container or application to perform sequential read and write operations on data. Most applications call the Read and Write methods through the IStream interface.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

ISequentialStream Methods

Description

Read

The Read method reads a specified number of bytes from the stream object into memory, starting at the current seek pointer.

Write

The Write method writes a specified number of bytes into the stream object starting at the current seek pointer.

 

QueryInterface

 

FUNCTION ISequentialStream_QueryInterface ( _

  BYVAL pthis AS DWORD PTR _

, BYREF riid AS GUID _

, BYREF ppvObj AS DWORD _

  ) AS LONG


  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[0] USING ISequentialStream_QueryInterface (pthis, riid, ppvObj) TO HRESULT
  FUNCTION = HRESULT
 

END FUNCTION

 

 

AddRef

 

FUNCTION ISequentialStream_AddRef ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

  LOCAL DWRESULT AS LONG
  CALL DWORD @@pthis[1] USING ISequentialStream_AddRef (pthis) TO DWRESULT
  FUNCTION = DWRESULT
 

END FUNCTION

 

 

Release

 

FUNCTION ISequentialStream_Release ( _

  BYVAL pthis AS DWORD PTR _

  ) AS DWORD
 

  LOCAL DWRESULT AS DWORD
  CALL DWORD @@pthis[2] USING ISequentialStream_Release (pthis) TO DWRESULT
  FUNCTION = DWRESULT
 

END FUNCTION

 

 

Read

 

FUNCTION ISequentialStream_Read ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL pv AS DWORD _

, BYVAL cb AS DWORD _

, BYREF pcbRead AS DWORD _

  ) AS LONG
 

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[3] USING ISequentialStream_Read (pthis, pv, cb, pcbRead) TO HRESULT
  FUNCTION = HRESULT

 

END FUNCTION

 

 

Write

 

FUNCTION ISequentialStream_Write ( _

  BYVAL pthis AS DWORD PTR _

, BYVAL pv AS DWORD _

, BYVAL cb AS DWORD _

, BYREF pcbWritten AS DWORD _

  ) AS LONG
 

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[4] USING ISequentialStream_Write (pthis, pv, cb, pcbWritten) TO HRESULT
  FUNCTION = HRESULT

 

END FUNCTION

 

 

Page last updated on Thursday, 16 March 2006 03:20:01 +0100