116 references to IStream
Microsoft.Private.Windows.Core (116)
System\IO\StreamExtensions.cs (3)
12
/// Get a <see cref="
IStream
"/> wrapper around the given <paramref name="stream"/>. Use the return value
15
internal static ComScope<
IStream
> ToIStream(this Stream stream, bool makeSeekable = false)
18
return ComHelpers.GetComScope<
IStream
>(new ComManagedStream(stream, makeSeekable));
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
452
Com.
IStream
* pStream = (Com.
IStream
*)medium.hGlobal;
Windows.Win32.IMoniker.g.cs (8)
75
public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.
IStream
* pStm)
77
return ((delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IMoniker*)Unsafe.AsPointer(ref this), pStm);
80
public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.
IStream
* pStm, winmdroot.Foundation.BOOL fClearDirty)
82
return ((delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IMoniker*)Unsafe.AsPointer(ref this), pStm, fClearDirty);
468
internal delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.HRESULT> Load_6;
470
internal delegate *unmanaged [Stdcall]<IMoniker*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7;
520
unsafe new winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.
IStream
* pStm);
523
unsafe new winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.
IStream
* pStm, winmdroot.Foundation.BOOL fClearDirty);
Windows.Win32.IPersistStream.g.cs (8)
92
public unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.
IStream
* pStm)
94
return ((delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IPersistStream*)Unsafe.AsPointer(ref this), pStm);
109
public unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.
IStream
* pStm, winmdroot.Foundation.BOOL fClearDirty)
111
return ((delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IPersistStream*)Unsafe.AsPointer(ref this), pStm, fClearDirty);
167
internal delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.HRESULT> Load_6;
169
internal delegate *unmanaged [Stdcall]<IPersistStream*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> Save_7;
189
unsafe winmdroot.Foundation.HRESULT Load(winmdroot.System.Com.
IStream
* pStm);
192
unsafe winmdroot.Foundation.HRESULT Save(winmdroot.System.Com.
IStream
* pStm, winmdroot.Foundation.BOOL fClearDirty);
Windows.Win32.IPicture.g.cs (6)
318
/// <inheritdoc cref="SaveAsFile(winmdroot.System.Com.
IStream
*, winmdroot.Foundation.BOOL, int*)"/>
319
internal unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.
IStream
* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, out int pCbSize)
336
public unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.
IStream
* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize)
338
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);
419
internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.System.Com.
IStream
* ,winmdroot.Foundation.BOOL ,int* ,winmdroot.Foundation.HRESULT> SaveAsFile_16;
469
unsafe winmdroot.Foundation.HRESULT SaveAsFile(winmdroot.System.Com.
IStream
* pStream, winmdroot.Foundation.BOOL fSaveMemCopy, int* pCbSize);
Windows.Win32.IStorage.g.cs (12)
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)
82
public unsafe winmdroot.Foundation.HRESULT CreateStream(winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.
IStream
** ppstm)
84
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);
87
/// <inheritdoc cref="OpenStream(winmdroot.Foundation.PCWSTR, void*, winmdroot.System.Com.STGM, uint, winmdroot.System.Com.
IStream
**)"/>
88
internal unsafe winmdroot.Foundation.HRESULT OpenStream(string pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved2, winmdroot.System.Com.
IStream
** ppstm)
110
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)
112
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);
499
internal delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,winmdroot.System.Com.STGM ,uint ,uint ,winmdroot.System.Com.
IStream
** ,winmdroot.Foundation.HRESULT> CreateStream_4;
501
internal delegate *unmanaged [Stdcall]<IStorage*,winmdroot.Foundation.PCWSTR ,void* ,winmdroot.System.Com.STGM ,uint ,winmdroot.System.Com.
IStream
** ,winmdroot.Foundation.HRESULT> OpenStream_5;
539
unsafe winmdroot.Foundation.HRESULT CreateStream(winmdroot.Foundation.PCWSTR pwcsName, winmdroot.System.Com.STGM grfMode, uint reserved1, uint reserved2, winmdroot.System.Com.
IStream
** ppstm);
542
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 (50)
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));
57
return ((delegate *unmanaged [Stdcall]<
IStream
*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((
IStream
*)Unsafe.AsPointer(ref this), pv, cb, pcbRead);
62
return ((delegate *unmanaged [Stdcall]<
IStream
*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((
IStream
*)Unsafe.AsPointer(ref this), pv, cb, pcbWritten);
81
return ((delegate *unmanaged [Stdcall]<
IStream
*,long ,global::System.IO.SeekOrigin ,ulong* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((
IStream
*)Unsafe.AsPointer(ref this), dlibMove, dwOrigin, plibNewPosition);
95
return ((delegate *unmanaged [Stdcall]<
IStream
*,ulong ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((
IStream
*)Unsafe.AsPointer(ref this), libNewSize);
110
public unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.
IStream
* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten)
112
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);
129
return ((delegate *unmanaged [Stdcall]<
IStream
*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((
IStream
*)Unsafe.AsPointer(ref this), grfCommitFlags);
139
return ((delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.Foundation.HRESULT>)lpVtbl[9])((
IStream
*)Unsafe.AsPointer(ref this));
155
return ((delegate *unmanaged [Stdcall]<
IStream
*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((
IStream
*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType);
171
return ((delegate *unmanaged [Stdcall]<
IStream
*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((
IStream
*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType);
202
return ((delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((
IStream
*)Unsafe.AsPointer(ref this), pstatstg, grfStatFlag);
217
public unsafe winmdroot.Foundation.HRESULT Clone(winmdroot.System.Com.
IStream
** ppstm)
219
return ((delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.System.Com.
IStream
** ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((
IStream
*)Unsafe.AsPointer(ref this), ppstm);
243
internal delegate *unmanaged [Stdcall]<
IStream
*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
245
internal delegate *unmanaged [Stdcall]<
IStream
*,uint> AddRef_2;
247
internal delegate *unmanaged [Stdcall]<
IStream
*,uint> Release_3;
249
internal delegate *unmanaged [Stdcall]<
IStream
*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> Read_4;
251
internal delegate *unmanaged [Stdcall]<
IStream
*,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> Write_5;
253
internal delegate *unmanaged [Stdcall]<
IStream
*,long ,global::System.IO.SeekOrigin ,ulong* ,winmdroot.Foundation.HRESULT> Seek_6;
255
internal delegate *unmanaged [Stdcall]<
IStream
*,ulong ,winmdroot.Foundation.HRESULT> SetSize_7;
257
internal delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.System.Com.
IStream
* ,ulong ,ulong* ,ulong* ,winmdroot.Foundation.HRESULT> CopyTo_8;
259
internal delegate *unmanaged [Stdcall]<
IStream
*,uint ,winmdroot.Foundation.HRESULT> Commit_9;
261
internal delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.Foundation.HRESULT> Revert_10;
263
internal delegate *unmanaged [Stdcall]<
IStream
*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> LockRegion_11;
265
internal delegate *unmanaged [Stdcall]<
IStream
*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> UnlockRegion_12;
267
internal delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT> Stat_13;
269
internal delegate *unmanaged [Stdcall]<
IStream
*,winmdroot.System.Com.
IStream
** ,winmdroot.Foundation.HRESULT> Clone_14;
293
unsafe winmdroot.Foundation.HRESULT CopyTo(winmdroot.System.Com.
IStream
* pstm, ulong cb, [Optional] ulong* pcbRead, [Optional] ulong* pcbWritten);
311
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 (16)
11
internal sealed unsafe partial class ComManagedStream :
IStream
.Interface
49
HRESULT
IStream
.Interface.Clone(
IStream
** ppstm)
57
*ppstm = ComHelpers.GetComPointer<
IStream
>(
63
HRESULT
IStream
.Interface.Commit(uint grfCommitFlags)
72
HRESULT
IStream
.Interface.CopyTo(
IStream
* pstm, ulong cb, ulong* pcbRead, ulong* pcbWritten)
91
((
IStream
.Interface)this).Read(b, read, &read);
133
HRESULT
IStream
.Interface.Read(void* pv, uint cb, uint* pcbRead)
136
HRESULT
IStream
.Interface.Seek(long dlibMove, SeekOrigin dwOrigin, ulong* plibNewPosition)
188
HRESULT
IStream
.Interface.SetSize(ulong libNewSize)
194
HRESULT
IStream
.Interface.Stat(STATSTG* pstatstg, uint grfStatFlag)
224
HRESULT
IStream
.Interface.LockRegion(ulong libOffset, ulong cb, uint dwLockType) => HRESULT.STG_E_INVALIDFUNCTION;
227
HRESULT
IStream
.Interface.Revert() => HRESULT.S_OK;
230
HRESULT
IStream
.Interface.UnlockRegion(ulong libOffset, ulong cb, uint dwLockType) => HRESULT.STG_E_INVALIDFUNCTION;
250
HRESULT
IStream
.Interface.Write(void* pv, uint cb, uint* pcbWritten)