Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

IStream (Interfaces)
 
.
Summary
Provides a managed definition of the IStream interface, with ISequentialStream functionality. This should only be used if using a framework version < 2.0. If using .Net 2.0 you should use the System.Runtime.InteropServices.ComTypes.IStream interface.

C# Definition:

[ComImport, Guid("0000000c-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]

public interface IStream

{

      void Read([Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex=1)] byte[] pv, int cb, IntPtr pcbRead);
      void Write([MarshalAs(UnmanagedType.LPArray, SizeParamIndex=1)] byte[] pv, int cb, IntPtr pcbWritten);
      void Seek(long dlibMove, int dwOrigin, IntPtr plibNewPosition);
      void SetSize(long libNewSize);
      void CopyTo(IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten);
      void Commit(int grfCommitFlags);
      void Revert();
      void LockRegion(long libOffset, long cb, int dwLockType);
      void UnlockRegion(long libOffset, long cb, int dwLockType);
      void Stat(out STATSTG pstatstg, int grfStatFlag);
      void Clone(out IStream ppstm);

}

User-Defined Types:

STATSTG

Notes:

None.

Documentation
IStream on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions