[]
IStream
[Guid("0000000c-0000-0000-C000-000000000046")]
public class ComStream : ComStreamBase, IUnknown, IStream, IStreamBase, ICallbackable, IDisposable
Initializes a new instance of the ComStream class.
public ComStream(IntPtr nativePtr)
nativePtr System.IntPtrThe native pointer.
HRESULT IStream::Clone([Out] IStream** ppstm)
public IStream Clone()
HRESULT IStream::Commit([In] STGC grfCommitFlags)
public void Commit(CommitFlags grfCommitFlags)
grfCommitFlags CommitFlagsCopies a specified number of bytes from the current seek pointer in the stream to the current seek pointer in another stream.
public long CopyTo(IStream streamDest, long numberOfBytesToCopy, out long bytesWritten)
streamDest IStreamThe stream destination.
numberOfBytesToCopy longThe number of bytes to copy.
bytesWritten longThe bytes written.
The number of bytes read from this instance
HRESULT IStream::Stat([Out] STATSTG* pstatstg,[In] STATFLAG grfStatFlag)
public StorageStatistics GetStatistics(StorageStatisticsFlags grfStatFlag)
grfStatFlag StorageStatisticsFlagsHRESULT IStream::LockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType)
public void LockRegion(long libOffset, long cb, LockType dwLockType)
libOffset longcb longdwLockType LockTypeHRESULT IStream::Revert()
public void Revert()
HRESULT IStream::Seek([In] LARGE_INTEGER dlibMove,[In] SHARPDX_SEEKORIGIN dwOrigin,[Out, Optional] ULARGE_INTEGER* plibNewPosition)
public long Seek(long dlibMove, SeekOrigin dwOrigin)
dlibMove longdwOrigin System.IO.SeekOriginHRESULT IStream::SetSize([In] ULARGE_INTEGER libNewSize)
public void SetSize(long libNewSize)
libNewSize longGets a com pointer to the underlying IStream object.
public static IntPtr ToIntPtr(IStream stream)
stream IStreamThe stream.
A Com pointer
HRESULT IStream::UnlockRegion([In] ULARGE_INTEGER libOffset,[In] ULARGE_INTEGER cb,[In] LOCKTYPE dwLockType)
public void UnlockRegion(long libOffset, long cb, LockType dwLockType)
libOffset longcb longdwLockType LockTypePerforms an explicit conversion from System.IntPtr to ComStream.
public static explicit operator ComStream(IntPtr nativePointer)
nativePointer System.IntPtr