5 [Guid(
"0000000c-0000-0000-C000-000000000046")]
7 [__DynamicallyInvokable]
26 void Seek(
long dlibMove,
int dwOrigin,
IntPtr plibNewPosition);
30 [__DynamicallyInvokable]
42 [__DynamicallyInvokable]
43 void Commit(
int grfCommitFlags);
46 [__DynamicallyInvokable]
53 [__DynamicallyInvokable]
54 void LockRegion(
long libOffset,
long cb,
int dwLockType);
60 [__DynamicallyInvokable]
61 void UnlockRegion(
long libOffset,
long cb,
int dwLockType);
66 [__DynamicallyInvokable]
71 [__DynamicallyInvokable]
void LockRegion(long libOffset, long cb, int dwLockType)
Restricts access to a specified range of bytes in the stream.
void Read([Out] [MarshalAs(UnmanagedType.LPArray, SizeParamIndex=1)] byte[] pv, int cb, IntPtr pcbRead)
Reads a specified number of bytes from the stream object into memory starting at the current seek poi...
Provides the managed definition of the IStream interface, with ISequentialStream functionality.
Contains statistical information about an open storage, stream, or byte-array object.
void Commit(int grfCommitFlags)
Ensures that any changes made to a stream object that is open in transacted mode are reflected in the...
void CopyTo(IStream pstm, long cb, IntPtr pcbRead, IntPtr pcbWritten)
Copies a specified number of bytes from the current seek pointer in the stream to the current seek po...
UnmanagedType
Identifies how to marshal parameters or fields to unmanaged code.
A platform-specific type that is used to represent a pointer or a handle.
void UnlockRegion(long libOffset, long cb, int dwLockType)
Removes the access restriction on a range of bytes previously restricted with the M:System....
void SetSize(long libNewSize)
Changes the size of the stream object.
void Revert()
Discards all changes that have been made to a transacted stream since the last M:System....
void Seek(long dlibMove, int dwOrigin, IntPtr plibNewPosition)
Changes the seek pointer to a new location relative to the beginning of the stream,...
ComInterfaceType
Identifies how to expose an interface to COM.
void Write([MarshalAs(UnmanagedType.LPArray, SizeParamIndex=1)] byte[] pv, int cb, IntPtr pcbWritten)
Writes a specified number of bytes into the stream object starting at the current seek pointer.
void Clone(out IStream ppstm)
Creates a new stream object with its own seek pointer that references the same bytes as the original ...
void Stat(out STATSTG pstatstg, int grfStatFlag)
Retrieves the T:System.Runtime.InteropServices.STATSTG structure for this stream.