140 references to IStream
Microsoft.Private.Windows.Core (140)
_generated\147\Windows.Win32.IMoniker.g.cs (8)
77 public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm) 79 return ((delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IMoniker*)Unsafe.AsPointer(ref this), pStm); 82 public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 84 return ((delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IMoniker*)Unsafe.AsPointer(ref this), pStm, fClearDirty); 480 internal delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT> Load_6; 482 internal delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7; 537 unsafe new winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm); 540 unsafe new winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty);
_generated\152\Windows.Win32.IPersistStream.g.cs (8)
94 public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm) 96 return ((delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPersistStream*)Unsafe.AsPointer(ref this), pStm); 111 public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 113 return ((delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPersistStream*)Unsafe.AsPointer(ref this), pStm, fClearDirty); 172 internal delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT> Load_6; 174 internal delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7; 199 unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm); 202 unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty);
_generated\153\Windows.Win32.IPicture.g.cs (6)
328 /// <inheritdoc cref="SaveAsFile(winmdroot.System.Com.IStream*, winmdroot.Foundation.BOOL, int*)"/> 330 internal unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, out int pCbSize) 347 public unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize) 349 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IPicture*)Unsafe.AsPointer(ref this), pStream, fSaveMemCopy, pCbSize); 433 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT> SaveAsFile_16; 488 unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize);
_generated\159\Windows.Win32.IStorage.g.cs (12)
56 /// <inheritdoc cref="CreateStream(winmdroot.Foundation.PCWSTR, winmdroot.System.Com.STGM, uint, uint, winmdroot.System.Com.IStream**)"/> 58 internal unsafe winmdroot.Foundation.HRESULT CreateStream(string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm) 84 public unsafe winmdroot.Foundation.HRESULT CreateStream(winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm) 86 return ((delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,winmdroot.System.Com.STGM ,uint ,uint ,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IStorage*)Unsafe.AsPointer(ref this), pwcsName, grfMode, reserved1, reserved2, ppstm); 89 /// <inheritdoc cref="OpenStream(winmdroot.Foundation.PCWSTR, void*, winmdroot.System.Com.STGM, uint, winmdroot.System.Com.IStream**)"/> 90 internal unsafe winmdroot.Foundation.HRESULT OpenStream(string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm) 112 public unsafe winmdroot.Foundation.HRESULT OpenStream(winmdroot.Foundation.PCWSTR pwcsName, [Optional] void* reserved1, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm) 114 return ((delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,void* ,winmdroot.System.Com.STGM ,uint ,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IStorage*)Unsafe.AsPointer(ref this), pwcsName, reserved1, grfMode, reserved2, ppstm); 514 internal delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,winmdroot.System.Com.STGM ,uint ,uint ,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT> CreateStream_4; 516 internal delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,void* ,winmdroot.System.Com.STGM ,uint ,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT> OpenStream_5; 559 unsafe winmdroot.Foundation.HRESULT CreateStream(winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm); 562 unsafe winmdroot.Foundation.HRESULT OpenStream(winmdroot.Foundation.PCWSTR pwcsName, [Optional] void* reserved1, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm);
_generated\160\Windows.Win32.IStream.g.cs (54)
43 return ((delegate *unmanaged [Stdcall]<IStream*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IStream*)Unsafe.AsPointer(ref this), riid, ppvObject); 48 return ((delegate *unmanaged [Stdcall]<IStream*,uint>)lpVtbl[1])((IStream*)Unsafe.AsPointer(ref this)); 53 return ((delegate *unmanaged [Stdcall]<IStream*,uint>)lpVtbl[2])((IStream*)Unsafe.AsPointer(ref this)); 81 return ((delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IStream*)Unsafe.AsPointer(ref this), pv, cb, pcbRead); 109 return ((delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IStream*)Unsafe.AsPointer(ref this), pv, cb, pcbWritten); 146 return ((delegate *unmanaged [Stdcall]<IStream*,long ,global::System.IO.SeekOrigin ,ulong* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IStream*)Unsafe.AsPointer(ref this), dlibMove, dwOrigin, plibNewPosition); 160 return ((delegate *unmanaged [Stdcall]<IStream*,ulong ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IStream*)Unsafe.AsPointer(ref this), libNewSize); 163 /// <inheritdoc cref="CopyTo(winmdroot.System.Com.IStream*, ulong, ulong*, ulong*)"/> 165 internal unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.IStream* pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten) 177 /// <inheritdoc cref="CopyTo(winmdroot.System.Com.IStream*, ulong, ulong*, ulong*)"/> 178 internal unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.IStream* pstm, ulong cb) 196 public unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.IStream* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten) 198 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream* ,ulong ,ulong* ,ulong* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IStream*)Unsafe.AsPointer(ref this), pstm, cb, pcbRead, pcbWritten); 215 return ((delegate *unmanaged [Stdcall]<IStream*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IStream*)Unsafe.AsPointer(ref this), grfCommitFlags); 225 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IStream*)Unsafe.AsPointer(ref this)); 241 return ((delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IStream*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType); 257 return ((delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IStream*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType); 289 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IStream*)Unsafe.AsPointer(ref this), pstatstg, grfStatFlag); 304 public unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.System.Com.IStream** ppstm) 306 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IStream*)Unsafe.AsPointer(ref this), ppstm); 332 internal delegate *unmanaged [Stdcall]<IStream*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 334 internal delegate *unmanaged [Stdcall]<IStream*,uint> AddRef_2; 336 internal delegate *unmanaged [Stdcall]<IStream*,uint> Release_3; 338 internal delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> Read_4; 340 internal delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> Write_5; 342 internal delegate *unmanaged [Stdcall]<IStream*,long ,global::System.IO.SeekOrigin ,ulong* ,winmdroot.Foundation.HRESULT> Seek_6; 344 internal delegate *unmanaged [Stdcall]<IStream*,ulong ,winmdroot.Foundation.HRESULT> SetSize_7; 346 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream* ,ulong ,ulong* ,ulong* ,winmdroot.Foundation.HRESULT> CopyTo_8; 348 internal delegate *unmanaged [Stdcall]<IStream*,uint ,winmdroot.Foundation.HRESULT> Commit_9; 350 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.Foundation.HRESULT> Revert_10; 352 internal delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> LockRegion_11; 354 internal delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> UnlockRegion_12; 356 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT> Stat_13; 358 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT> Clone_14; 387 unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.IStream* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten); 405 unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.System.Com.IStream** ppstm);
_generated\204\Windows.Win32.PROPVARIANT.g.cs (1)
143 internal unsafe winmdroot.System.Com.IStream* pStream;
_generated\225\Windows.Win32.STGMEDIUM.g.cs (1)
57 internal unsafe winmdroot.System.Com.IStream* pstm;
_generated\243\Windows.Win32.System_Com_IStream_Extensions.g.cs (22)
23 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Read(void*, uint, uint*)"/> 25 internal static unsafe winmdroot.Foundation.HRESULT Read(this winmdroot.System.Com.IStream.Interface @this, Span<byte> pv, out uint pcbRead) 37 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Read(void*, uint, uint*)"/> 38 internal static unsafe winmdroot.Foundation.HRESULT Read(this winmdroot.System.Com.IStream.Interface @this, Span<byte> pv) 47 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Write(void*, uint, uint*)"/> 49 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.IStream.Interface @this, ReadOnlySpan<byte> pv, out uint pcbWritten) 61 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Write(void*, uint, uint*)"/> 62 internal static unsafe winmdroot.Foundation.HRESULT Write(this winmdroot.System.Com.IStream.Interface @this, ReadOnlySpan<byte> pv) 71 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Seek(long, global::System.IO.SeekOrigin, ulong*)"/> 72 internal static unsafe winmdroot.Foundation.HRESULT Seek(this winmdroot.System.Com.IStream.Interface @this, long dlibMove, global::System.IO.SeekOrigin dwOrigin, out ulong plibNewPosition) 81 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Seek(long, global::System.IO.SeekOrigin, ulong*)"/> 83 internal static unsafe winmdroot.Foundation.HRESULT Seek(this winmdroot.System.Com.IStream.Interface @this, long dlibMove, global::System.IO.SeekOrigin dwOrigin) 89 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.CopyTo(winmdroot.System.Com.IStream*, ulong, ulong*, ulong*)"/> 90 internal static unsafe winmdroot.Foundation.HRESULT CopyTo(this winmdroot.System.Com.IStream.Interface @this, winmdroot.System.Com.IStream* pstm, ulong cb, out ulong pcbRead, out ulong pcbWritten) 102 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.CopyTo(winmdroot.System.Com.IStream*, ulong, ulong*, ulong*)"/> 103 internal static unsafe winmdroot.Foundation.HRESULT CopyTo(this winmdroot.System.Com.IStream.Interface @this, winmdroot.System.Com.IStream* pstm, ulong cb) 109 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Stat(winmdroot.System.Com.STATSTG*, uint)"/> 110 internal static unsafe winmdroot.Foundation.HRESULT Stat(this winmdroot.System.Com.IStream.Interface @this, out winmdroot.System.Com.STATSTG pstatstg, uint grfStatFlag)
_generated\248\Windows.Win32.System_Com_StructuredStorage_IStorage_Extensions.g.cs (4)
23 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.IStorage.Interface.CreateStream(winmdroot.Foundation.PCWSTR, winmdroot.System.Com.STGM, uint, uint, winmdroot.System.Com.IStream**)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT CreateStream(this winmdroot.System.Com.StructuredStorage.IStorage.Interface @this, string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm) 33 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.IStorage.Interface.OpenStream(winmdroot.Foundation.PCWSTR, void*, winmdroot.System.Com.STGM, uint, winmdroot.System.Com.IStream**)"/> 35 internal static unsafe winmdroot.Foundation.HRESULT OpenStream(this winmdroot.System.Com.StructuredStorage.IStorage.Interface @this, string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm)
_generated\252\Windows.Win32.System_Ole_IPicture_Extensions.g.cs (2)
116 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.SaveAsFile(winmdroot.System.Com.IStream*, winmdroot.Foundation.BOOL, int*)"/> 117 internal static unsafe winmdroot.Foundation.HRESULT SaveAsFile(this winmdroot.System.Ole.IPicture.Interface @this, winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, out int pCbSize)
_generated\275\Windows.Win32.VERSIONEDSTREAM.g.cs (1)
27 internal unsafe winmdroot.System.Com.IStream* pStream;
System\IO\StreamExtensions.cs (3)
12/// Get a <see cref="IStream"/> wrapper around the given <paramref name="stream"/>. Use the return value 15internal static ComScope<IStream> ToIStream(this Stream stream, bool makeSeekable = false) 18return ComHelpers.GetComScope<IStream>(new ComManagedStream(stream, makeSeekable));
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
493Com.IStream* pStream = (Com.IStream*)medium.hGlobal;
Windows\Win32\System\Com\ComManagedStream.cs (16)
11internal sealed unsafe partial class ComManagedStream : IStream.Interface 49HRESULT IStream.Interface.Clone(IStream** ppstm) 57*ppstm = ComHelpers.GetComPointer<IStream>( 63HRESULT IStream.Interface.Commit(uint grfCommitFlags) 72HRESULT IStream.Interface.CopyTo(IStream* pstm, ulong cb, ulong* pcbRead, ulong* pcbWritten) 91((IStream.Interface)this).Read(b, read, &read); 133HRESULT IStream.Interface.Read(void* pv, uint cb, uint* pcbRead) 136HRESULT IStream.Interface.Seek(long dlibMove, SeekOrigin dwOrigin, ulong* plibNewPosition) 188HRESULT IStream.Interface.SetSize(ulong libNewSize) 194HRESULT IStream.Interface.Stat(STATSTG* pstatstg, uint grfStatFlag) 224HRESULT IStream.Interface.LockRegion(ulong libOffset, ulong cb, uint dwLockType) => HRESULT.STG_E_INVALIDFUNCTION; 227HRESULT IStream.Interface.Revert() => HRESULT.S_OK; 230HRESULT IStream.Interface.UnlockRegion(ulong libOffset, ulong cb, uint dwLockType) => HRESULT.STG_E_INVALIDFUNCTION; 250HRESULT IStream.Interface.Write(void* pv, uint cb, uint* pcbWritten)