61 references to ILockBytes
System.Windows.Forms (3)
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
32private AgileComPointer<ILockBytes>? _lockBytes; 155ILockBytes* lockBytes;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
38using ComScope<ILockBytes> pLockBytes = new(null);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (1)
30using ComScope<ILockBytes> pLockBytes = new(null);
System.Windows.Forms.Primitives (57)
_generated\181\Windows.Win32.ILockBytes.g.cs (39)
27 :winmdroot.IVTable<ILockBytes,ILockBytes.Vtbl>,IComIID { 44 return ((delegate *unmanaged [Stdcall]<ILockBytes*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((ILockBytes*)Unsafe.AsPointer(ref this), riid, ppvObject); 49 return ((delegate *unmanaged [Stdcall]<ILockBytes*,uint>)lpVtbl[1])((ILockBytes*)Unsafe.AsPointer(ref this)); 54 return ((delegate *unmanaged [Stdcall]<ILockBytes*,uint>)lpVtbl[2])((ILockBytes*)Unsafe.AsPointer(ref this)); 81 private static winmdroot.Foundation.HRESULT ReadAt(ILockBytes* pThis, ulong ulOffset, void* pv, uint cb, [Optional] uint* pcbRead) 112 ((delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((ILockBytes*)Unsafe.AsPointer(ref this), ulOffset, pv, cb, pcbRead).ThrowOnFailure(); 139 private static winmdroot.Foundation.HRESULT WriteAt(ILockBytes* pThis, ulong ulOffset, void* pv, uint cb, [Optional] uint* pcbWritten) 170 ((delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((ILockBytes*)Unsafe.AsPointer(ref this), ulOffset, pv, cb, pcbWritten).ThrowOnFailure(); 176 private static winmdroot.Foundation.HRESULT Flush(ILockBytes* pThis) 203 ((delegate *unmanaged [Stdcall]<ILockBytes*,winmdroot.Foundation.HRESULT>)lpVtbl[5])((ILockBytes*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); 209 private static winmdroot.Foundation.HRESULT SetSize(ILockBytes* pThis, ulong cb) 237 ((delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((ILockBytes*)Unsafe.AsPointer(ref this), cb).ThrowOnFailure(); 243 private static winmdroot.Foundation.HRESULT LockRegion(ILockBytes* pThis, ulong libOffset, ulong cb, uint dwLockType) 276 ((delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ILockBytes*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType).ThrowOnFailure(); 282 private static winmdroot.Foundation.HRESULT UnlockRegion(ILockBytes* pThis, ulong libOffset, ulong cb, uint dwLockType) 315 ((delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((ILockBytes*)Unsafe.AsPointer(ref this), libOffset, cb, dwLockType).ThrowOnFailure(); 331 private static winmdroot.Foundation.HRESULT Stat(ILockBytes* pThis, winmdroot.System.Com.STATSTG* pstatstg, uint grfStatFlag) 366 ((delegate *unmanaged [Stdcall]<ILockBytes*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((ILockBytes*)Unsafe.AsPointer(ref this), pstatstg, grfStatFlag).ThrowOnFailure(); 392 internal delegate *unmanaged [Stdcall]<ILockBytes*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 394 internal delegate *unmanaged [Stdcall]<ILockBytes*,uint> AddRef_2; 396 internal delegate *unmanaged [Stdcall]<ILockBytes*,uint> Release_3; 398 internal delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> ReadAt_4; 400 internal delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,void* ,uint ,uint* ,winmdroot.Foundation.HRESULT> WriteAt_5; 402 internal delegate *unmanaged [Stdcall]<ILockBytes*,winmdroot.Foundation.HRESULT> Flush_6; 404 internal delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,winmdroot.Foundation.HRESULT> SetSize_7; 406 internal delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> LockRegion_8; 408 internal delegate *unmanaged [Stdcall]<ILockBytes*,ulong ,ulong ,uint ,winmdroot.Foundation.HRESULT> UnlockRegion_9; 410 internal delegate *unmanaged [Stdcall]<ILockBytes*,winmdroot.System.Com.STATSTG* ,uint ,winmdroot.Foundation.HRESULT> Stat_10;
_generated\418\Windows.Win32.PInvoke.OLE32.dll.g.cs (8)
107 internal static extern unsafe winmdroot.Foundation.HRESULT CreateILockBytesOnHGlobal([Optional] winmdroot.Foundation.HGLOBAL hGlobal, winmdroot.Foundation.BOOL fDeleteOnRelease, winmdroot.System.Com.StructuredStorage.ILockBytes** pplkbyt); 117 /// <inheritdoc cref="GetHGlobalFromILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes*, winmdroot.Foundation.HGLOBAL*)"/> 120 internal static unsafe winmdroot.Foundation.HRESULT GetHGlobalFromILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes* plkbyt, out winmdroot.Foundation.HGLOBAL phglobal) 142 internal static extern unsafe winmdroot.Foundation.HRESULT GetHGlobalFromILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes* plkbyt, winmdroot.Foundation.HGLOBAL* phglobal); 223 internal static extern unsafe winmdroot.Foundation.HRESULT StgCreateDocfileOnILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes* plkbyt, winmdroot.System.Com.STGM grfMode, uint reserved, winmdroot.System.Com.StructuredStorage.IStorage** ppstgOpen); 225 /// <inheritdoc cref="StgOpenStorageOnILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes*, winmdroot.System.Com.StructuredStorage.IStorage*, winmdroot.System.Com.STGM, ushort**, uint, winmdroot.System.Com.StructuredStorage.IStorage**)"/> 227 internal static unsafe winmdroot.Foundation.HRESULT StgOpenStorageOnILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes* plkbyt, [Optional] winmdroot.System.Com.StructuredStorage.IStorage* pstgPriority, winmdroot.System.Com.STGM grfMode, in ushort* snbExclude, winmdroot.System.Com.StructuredStorage.IStorage** ppstgOpen) 260 internal static extern unsafe winmdroot.Foundation.HRESULT StgOpenStorageOnILockBytes(winmdroot.System.Com.StructuredStorage.ILockBytes* plkbyt, [Optional] winmdroot.System.Com.StructuredStorage.IStorage* pstgPriority, winmdroot.System.Com.STGM grfMode, [Optional] ushort** snbExclude, [Optional] uint reserved, winmdroot.System.Com.StructuredStorage.IStorage** ppstgOpen);
_generated\485\Windows.Win32.System_Com_StructuredStorage_ILockBytes_Extensions.g.cs (10)
23 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.ILockBytes.Interface.ReadAt(ulong, void*, uint, uint*)"/> 25 internal static unsafe winmdroot.Foundation.HRESULT ReadAt(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, ulong ulOffset, Span<byte> pv, out uint pcbRead) 37 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.ILockBytes.Interface.ReadAt(ulong, void*, uint, uint*)"/> 38 internal static unsafe winmdroot.Foundation.HRESULT ReadAt(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, ulong ulOffset, Span<byte> pv) 47 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.ILockBytes.Interface.WriteAt(ulong, void*, uint, uint*)"/> 49 internal static unsafe winmdroot.Foundation.HRESULT WriteAt(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, ulong ulOffset, ReadOnlySpan<byte> pv, out uint pcbWritten) 61 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.ILockBytes.Interface.WriteAt(ulong, void*, uint, uint*)"/> 62 internal static unsafe winmdroot.Foundation.HRESULT WriteAt(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, ulong ulOffset, ReadOnlySpan<byte> pv) 71 /// <inheritdoc cref="winmdroot.System.Com.StructuredStorage.ILockBytes.Interface.Stat(winmdroot.System.Com.STATSTG*, uint)"/> 72 internal static unsafe winmdroot.Foundation.HRESULT Stat(this winmdroot.System.Com.StructuredStorage.ILockBytes.Interface @this, out winmdroot.System.Com.STATSTG pstatstg, uint grfStatFlag)