221 references to IStream
System.Drawing.Common (1)
System\Drawing\Image.cs (1)
162private static unsafe GpImage* LoadGdipImageFromStream(IStream* stream, bool useEmbeddedColorManagement)
System.Private.Windows.Core (139)
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)
374using ComScope<Com.IStream> pStream = new((Com.IStream*)medium.hGlobal);
Windows.Win32.IMoniker.g.cs (10)
118 private static winmdroot.Foundation.HRESULT Load(IMoniker* pThis, winmdroot.System.Com.IStream* pStm) 135 public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm) 137 return ((delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IMoniker*)Unsafe.AsPointer(ref this), pStm); 143 private static winmdroot.Foundation.HRESULT Save(IMoniker* pThis, winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 160 public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 162 return ((delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IMoniker*)Unsafe.AsPointer(ref this), pStm, fClearDirty); 868 internal delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT> Load_6; 870 internal delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7; 954 unsafe new winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm); 957 unsafe new winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty);
Windows.Win32.IPersistStream.g.cs (10)
124 private static winmdroot.Foundation.HRESULT Load(IPersistStream* pThis, winmdroot.System.Com.IStream* pStm) 152 public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm) 154 return ((delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPersistStream*)Unsafe.AsPointer(ref this), pStm); 160 private static winmdroot.Foundation.HRESULT Save(IPersistStream* pThis, winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 189 public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 191 return ((delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPersistStream*)Unsafe.AsPointer(ref this), pStm, fClearDirty); 267 internal delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT> Load_6; 269 internal delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7; 308 unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm); 311 unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty);
Windows.Win32.IPicture.g.cs (7)
558 /// <inheritdoc cref="SaveAsFile(winmdroot.System.Com.IStream*, winmdroot.Foundation.BOOL, int*)"/> 559 internal unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, out int pCbSize) 571 private static winmdroot.Foundation.HRESULT SaveAsFile(IPicture* pThis, winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize) 596 public unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize) 598 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); 699 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT> SaveAsFile_16; 777 unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.IStream* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize);
Windows.Win32.IStorage.g.cs (14)
55 /// <inheritdoc cref="CreateStream(winmdroot.Foundation.PCWSTR, winmdroot.System.Com.STGM, uint, uint, winmdroot.System.Com.IStream**)"/> 56 internal unsafe winmdroot.Foundation.HRESULT CreateStream(string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm) 68 private static winmdroot.Foundation.HRESULT CreateStream(IStorage* pThis, winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm) 102 public unsafe winmdroot.Foundation.HRESULT CreateStream(winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm) 104 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); 107 /// <inheritdoc cref="OpenStream(winmdroot.Foundation.PCWSTR, void*, winmdroot.System.Com.STGM, uint, winmdroot.System.Com.IStream**)"/> 108 internal unsafe winmdroot.Foundation.HRESULT OpenStream(string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm) 120 private static winmdroot.Foundation.HRESULT OpenStream(IStorage* pThis, winmdroot.Foundation.PCWSTR pwcsName, [Optional] void* reserved1, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm) 150 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) 152 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); 799 internal delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,winmdroot.System.Com.STGM ,uint ,uint ,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT> CreateStream_4; 801 internal delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,void* ,winmdroot.System.Com.STGM ,uint ,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT> OpenStream_5; 868 unsafe winmdroot.Foundation.HRESULT CreateStream(winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.IStream** ppstm); 871 unsafe winmdroot.Foundation.HRESULT OpenStream(winmdroot.Foundation.PCWSTR pwcsName, [Optional] void* reserved1, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.IStream** ppstm);
Windows.Win32.IStream.g.cs (65)
26 :IVTable<IStream,IStream.Vtbl>,IComIID { 42 return ((delegate *unmanaged [Stdcall]<IStream*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IStream*)Unsafe.AsPointer(ref this), riid, ppvObject); 47 return ((delegate *unmanaged [Stdcall]<IStream*,uint>)lpVtbl[1])((IStream*)Unsafe.AsPointer(ref this)); 52 return ((delegate *unmanaged [Stdcall]<IStream*,uint>)lpVtbl[2])((IStream*)Unsafe.AsPointer(ref this)); 58 private static winmdroot.Foundation.HRESULT Read(IStream* pThis, void* pv, uint cb, [Optional] uint* pcbRead) 77 return ((delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IStream*)Unsafe.AsPointer(ref this), pv, cb, pcbRead); 83 private static winmdroot.Foundation.HRESULT Write(IStream* pThis, void* pv, uint cb, [Optional] uint* pcbWritten) 102 return ((delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IStream*)Unsafe.AsPointer(ref this), pv, cb, pcbWritten); 108 private static winmdroot.Foundation.HRESULT Seek(IStream* pThis, long dlibMove, global::System.IO.SeekOrigin dwOrigin, [Optional] ulong* plibNewPosition) 141 return ((delegate *unmanaged [Stdcall]<IStream*,long ,global::System.IO.SeekOrigin ,ulong* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IStream*)Unsafe.AsPointer(ref this), dlibMove, dwOrigin, plibNewPosition); 147 private static winmdroot.Foundation.HRESULT SetSize(IStream* pThis, ulong libNewSize) 175 return ((delegate *unmanaged [Stdcall]<IStream*,ulong ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IStream*)Unsafe.AsPointer(ref this), libNewSize); 181 private static winmdroot.Foundation.HRESULT CopyTo(IStream* pThis, winmdroot.System.Com.IStream* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten) 210 public unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.IStream* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten) 212 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); 218 private static winmdroot.Foundation.HRESULT Commit(IStream* pThis, uint grfCommitFlags) 249 return ((delegate *unmanaged [Stdcall]<IStream*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IStream*)Unsafe.AsPointer(ref this), grfCommitFlags); 255 private static winmdroot.Foundation.HRESULT Revert(IStream* pThis) 279 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IStream*)Unsafe.AsPointer(ref this)); 285 private static winmdroot.Foundation.HRESULT LockRegion(IStream* pThis, ulong libOffset, ulong cb, uint dwLockType) 315 return ((delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IStream*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType); 321 private static winmdroot.Foundation.HRESULT UnlockRegion(IStream* pThis, ulong libOffset, ulong cb, uint dwLockType) 351 return ((delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IStream*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType); 367 private static winmdroot.Foundation.HRESULT Stat(IStream* pThis, winmdroot.System.Com.STATSTG* pstatstg, uint grfStatFlag) 402 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IStream*)Unsafe.AsPointer(ref this), pstatstg, grfStatFlag); 408 private static winmdroot.Foundation.HRESULT Clone(IStream* pThis, winmdroot.System.Com.IStream** ppstm) 437 public unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.System.Com.IStream** ppstm) 439 return ((delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IStream*)Unsafe.AsPointer(ref this), ppstm); 463 internal delegate *unmanaged [Stdcall]<IStream*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 465 internal delegate *unmanaged [Stdcall]<IStream*,uint> AddRef_2; 467 internal delegate *unmanaged [Stdcall]<IStream*,uint> Release_3; 469 internal delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> Read_4; 471 internal delegate *unmanaged [Stdcall]<IStream*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> Write_5; 473 internal delegate *unmanaged [Stdcall]<IStream*,long ,global::System.IO.SeekOrigin ,ulong* ,winmdroot.Foundation.HRESULT> Seek_6; 475 internal delegate *unmanaged [Stdcall]<IStream*,ulong ,winmdroot.Foundation.HRESULT> SetSize_7; 477 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream* ,ulong ,ulong* ,ulong* ,winmdroot.Foundation.HRESULT> CopyTo_8; 479 internal delegate *unmanaged [Stdcall]<IStream*,uint ,winmdroot.Foundation.HRESULT> Commit_9; 481 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.Foundation.HRESULT> Revert_10; 483 internal delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> LockRegion_11; 485 internal delegate *unmanaged [Stdcall]<IStream*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> UnlockRegion_12; 487 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT> Stat_13; 489 internal delegate *unmanaged [Stdcall]<IStream*,winmdroot.System.Com.IStream** ,winmdroot.Foundation.HRESULT> Clone_14; 538 unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.IStream* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten); 556 unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.System.Com.IStream** ppstm);
Windows.Win32.PROPVARIANT.g.cs (1)
143 internal unsafe winmdroot.System.Com.IStream* pStream;
Windows.Win32.STGMEDIUM.g.cs (1)
57 internal unsafe winmdroot.System.Com.IStream* pstm;
Windows.Win32.System_Com_IStream_Extensions.g.cs (2)
23 /// <inheritdoc cref="winmdroot.System.Com.IStream.Interface.Stat(winmdroot.System.Com.STATSTG*, uint)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT Stat(this winmdroot.System.Com.IStream.Interface @this, out winmdroot.System.Com.STATSTG pstatstg, uint grfStatFlag)
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**)"/> 34 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)
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)
Windows.Win32.VERSIONEDSTREAM.g.cs (1)
27 internal unsafe winmdroot.System.Com.IStream* pStream;
Windows\Win32\System\Com\ComManagedStream.cs (17)
8internal sealed unsafe class ComManagedStream : IStream.Interface, IManagedWrapper<IStream, ISequentialStream> 46HRESULT IStream.Interface.Clone(IStream** ppstm) 54*ppstm = ComHelpers.GetComPointer<IStream>( 60HRESULT IStream.Interface.Commit(uint grfCommitFlags) 69HRESULT IStream.Interface.CopyTo(IStream* pstm, ulong cb, ulong* pcbRead, ulong* pcbWritten) 88((IStream.Interface)this).Read(b, read, &read); 130HRESULT IStream.Interface.Read(void* pv, uint cb, uint* pcbRead) 133HRESULT IStream.Interface.Seek(long dlibMove, SeekOrigin dwOrigin, ulong* plibNewPosition) 185HRESULT IStream.Interface.SetSize(ulong libNewSize) 191HRESULT IStream.Interface.Stat(STATSTG* pstatstg, uint grfStatFlag) 221HRESULT IStream.Interface.LockRegion(ulong libOffset, ulong cb, uint dwLockType) => HRESULT.STG_E_INVALIDFUNCTION; 224HRESULT IStream.Interface.Revert() => HRESULT.S_OK; 227HRESULT IStream.Interface.UnlockRegion(ulong libOffset, ulong cb, uint dwLockType) => HRESULT.STG_E_INVALIDFUNCTION; 247HRESULT IStream.Interface.Write(void* pv, uint cb, uint* pcbWritten)
System.Private.Windows.GdiPlus (24)
Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (24)
951 /// <inheritdoc cref="GdipCreateBitmapFromStream(winmdroot.System.Com.IStream*, winmdroot.Graphics.GdiPlus.GpBitmap**)"/> 952 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromStream(winmdroot.System.Com.IStream* stream, ref winmdroot.Graphics.GdiPlus.GpBitmap* bitmap) 962 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.GdiPlus.GpBitmap** bitmap); 964 /// <inheritdoc cref="GdipCreateBitmapFromStreamICM(winmdroot.System.Com.IStream*, winmdroot.Graphics.GdiPlus.GpBitmap**)"/> 965 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromStreamICM(winmdroot.System.Com.IStream* stream, ref winmdroot.Graphics.GdiPlus.GpBitmap* bitmap) 975 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateBitmapFromStreamICM(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.GdiPlus.GpBitmap** bitmap); 1336 /// <inheritdoc cref="GdipCreateMetafileFromStream(winmdroot.System.Com.IStream*, winmdroot.Graphics.GdiPlus.GpMetafile**)"/> 1337 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateMetafileFromStream(winmdroot.System.Com.IStream* stream, ref winmdroot.Graphics.GdiPlus.GpMetafile* metafile) 1347 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateMetafileFromStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.GdiPlus.GpMetafile** metafile); 4195 /// <inheritdoc cref="GdipGetMetafileHeaderFromStream(winmdroot.System.Com.IStream*, winmdroot.Graphics.GdiPlus.MetafileHeader*)"/> 4196 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipGetMetafileHeaderFromStream(winmdroot.System.Com.IStream* stream, ref winmdroot.Graphics.GdiPlus.MetafileHeader header) 4206 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipGetMetafileHeaderFromStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.GdiPlus.MetafileHeader* header); 5852 /// <inheritdoc cref="GdipLoadImageFromStream(winmdroot.System.Com.IStream*, winmdroot.Graphics.GdiPlus.GpImage**)"/> 5853 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipLoadImageFromStream(winmdroot.System.Com.IStream* stream, ref winmdroot.Graphics.GdiPlus.GpImage* image) 5863 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipLoadImageFromStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.GdiPlus.GpImage** image); 5865 /// <inheritdoc cref="GdipLoadImageFromStreamICM(winmdroot.System.Com.IStream*, winmdroot.Graphics.GdiPlus.GpImage**)"/> 5866 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipLoadImageFromStreamICM(winmdroot.System.Com.IStream* stream, ref winmdroot.Graphics.GdiPlus.GpImage* image) 5876 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipLoadImageFromStreamICM(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.GdiPlus.GpImage** image); 6383 /// <inheritdoc cref="GdipRecordMetafileStream(winmdroot.System.Com.IStream*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.GdiPlus.EmfType, winmdroot.Graphics.GdiPlus.RectF*, winmdroot.Graphics.GdiPlus.MetafileFrameUnit, winmdroot.Foundation.PCWSTR, winmdroot.Graphics.GdiPlus.GpMetafile**)"/> 6384 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafileStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, in winmdroot.Graphics.GdiPlus.RectF frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, string description, ref winmdroot.Graphics.GdiPlus.GpMetafile* metafile) 6400 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafileStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, winmdroot.Graphics.GdiPlus.RectF* frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, winmdroot.Foundation.PCWSTR description, winmdroot.Graphics.GdiPlus.GpMetafile** metafile); 6687 /// <inheritdoc cref="GdipSaveImageToStream(winmdroot.Graphics.GdiPlus.GpImage*, winmdroot.System.Com.IStream*, global::System.Guid*, winmdroot.Graphics.GdiPlus.EncoderParameters*)"/> 6688 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipSaveImageToStream(ref winmdroot.Graphics.GdiPlus.GpImage image, winmdroot.System.Com.IStream* stream, in global::System.Guid clsidEncoder, winmdroot.Graphics.GdiPlus.EncoderParameters* encoderParams) 6701 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipSaveImageToStream(winmdroot.Graphics.GdiPlus.GpImage* image, winmdroot.System.Com.IStream* stream, global::System.Guid* clsidEncoder, winmdroot.Graphics.GdiPlus.EncoderParameters* encoderParams);
System.Windows.Forms (19)
System\Windows\Forms\ActiveX\AxHost.State.cs (1)
201internal ComScope<IStream> GetStream()
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (6)
999using ComScope<IStream> stream = new(null); 1025/// <inheritdoc cref="IPersistStreamInit.Load(IStream*)"/> 1026internal void Load(IStream* stream) 1460using ComScope<IStream> stream = new(null); 1478/// <inheritdoc cref="IPersistStreamInit.Save(IStream*, BOOL)"/> 1479internal void Save(IStream* stream, BOOL fClearDirty)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.PropertyBagStream.cs (2)
25internal void Read(IStream* istream) 80internal void Write(IStream* istream)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (4)
455/// <inheritdoc cref="IPersistStreamInit.Load(IStream*)"/> 456HRESULT IPersistStreamInit.Interface.Load(IStream* pStm) 467/// <inheritdoc cref="IPersistStreamInit.Save(IStream*, BOOL)"/> 468HRESULT IPersistStreamInit.Interface.Save(IStream* pStm, BOOL fClearDirty)
System\Windows\Forms\ActiveX\DataStreamFromComStream.cs (2)
10private IStream* _comStream; 15public DataStreamFromComStream(IStream* comStream) : base()
System\Windows\Forms\Controls\ImageList\ImageList.NativeImageList.cs (2)
21public unsafe NativeImageList(IStream.Interface pstm) 26using var stream = ComHelpers.TryGetComScope<IStream>(pstm, out HRESULT hr);
System\Windows\Forms\Input\Cursor.cs (2)
399private unsafe void LoadPicture(IStream.Interface stream, string paramName) 411using var pStream = ComHelpers.GetComScope<IStream>(stream);
System.Windows.Forms.Primitives (15)
Windows.Win32.IPersistStreamInit.g.cs (10)
123 private static winmdroot.Foundation.HRESULT Load(IPersistStreamInit* pThis, winmdroot.System.Com.IStream* pStm) 150 public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm) 152 return ((delegate *unmanaged [Stdcall]<IPersistStreamInit*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPersistStreamInit*)Unsafe.AsPointer(ref this), pStm); 158 private static winmdroot.Foundation.HRESULT Save(IPersistStreamInit* pThis, winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 186 public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty) 188 return ((delegate *unmanaged [Stdcall]<IPersistStreamInit*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPersistStreamInit*)Unsafe.AsPointer(ref this), pStm, fClearDirty); 294 internal delegate *unmanaged [Stdcall]<IPersistStreamInit*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.HRESULT> Load_6; 296 internal delegate *unmanaged [Stdcall]<IPersistStreamInit*,winmdroot.System.Com.IStream* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7; 338 unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.IStream* pStm); 341 unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.IStream* pStm, winmdroot.Foundation.BOOL fClearDirty);
Windows.Win32.PInvoke.COMCTL32.dll.g.cs (3)
265 internal static extern unsafe winmdroot.UI.Controls.HIMAGELIST ImageList_Read(winmdroot.System.Com.IStream* pstm); 369 internal static extern unsafe winmdroot.Foundation.BOOL ImageList_Write(winmdroot.UI.Controls.HIMAGELIST himl, winmdroot.System.Com.IStream* pstm); 396 internal static extern unsafe winmdroot.Foundation.HRESULT ImageList_WriteEx(winmdroot.UI.Controls.HIMAGELIST himl, winmdroot.UI.Controls.IMAGE_LIST_WRITE_STREAM_FLAGS dwFlags, winmdroot.System.Com.IStream* pstm);
Windows\Win32\PInvoke.ImageList.cs (2)
120/// <inheritdoc cref="ImageList_Write(HIMAGELIST, IStream*)"/> 129/// <inheritdoc cref="ImageList_WriteEx(HIMAGELIST, IMAGE_LIST_WRITE_STREAM_FLAGS, IStream*)"/>
System.Windows.Forms.Primitives.Tests (20)
Windows\Win32\AgileComPointerTests.cs (15)
13IStream* stream = ComHelpers.GetComPointer<IStream>(new GlobalInterfaceTableTests.MyStream()); 17using (AgileComPointer<IStream> agileStream = new(stream, takeOwnership: true)) 31using AgileComPointer<IStream> agileStream = CreateMyStreamAgileComPointer(out nint originalPtr); 34using AgileComPointer<IStream> proxyAgileStream = await GetProxyAgileComPointer(agileStream); 46((IStream*)originalPtr)->QueryInterface(IID.Get<IUnknown>(), originalUnknownPtr); 58((IStream*)originalPtr)->Release(); 62unsafe AgileComPointer<IStream> CreateMyStreamAgileComPointer(out nint originalPtr) 65IStream* streamPtr = ComHelpers.GetComPointer<IStream>(myStream); 67AgileComPointer<IStream> agile = new(streamPtr, takeOwnership: false); 69using ComScope<IStream> streamScope = agile.GetInterface(); 75unsafe Task<AgileComPointer<IStream>> GetProxyAgileComPointer(AgileComPointer<IStream> stream) 81return new AgileComPointer<IStream>(stream.GetInterface(), takeOwnership: true);
Windows\Win32\GlobalInterfaceTableTests.cs (5)
14using var stream = ComHelpers.TryGetComScope<IStream>(new MyStream(), out HRESULT hr); 37internal class MyStream : IStream.Interface, IManagedWrapper<IStream, ISequentialStream> 43public unsafe HRESULT CopyTo(IStream* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten) => throw new NotImplementedException(); 49public unsafe HRESULT Clone(IStream** ppstm) => throw new NotImplementedException();
System.Windows.Forms.Tests (3)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
206public HRESULT SaveAsFile(IStream* pStream, BOOL fSaveMemCopy, int* pCbSize) => HRESULT.S_OK;
System\Windows\Forms\DragDropFormatTests.cs (2)
11using IStream = Windows.Win32.System.Com.IStream; 46IStream.Interface iStream = new ComManagedStream(memoryStream);