4 instantiations of STGMEDIUM
System.Private.Windows.Core (3)
System\Private\Windows\Ole\DragDropHelper.cs (2)
199STGMEDIUM medium = new() 357STGMEDIUM medium = new()
Windows\Win32\System\Com\STGMEDIUM.cs (1)
17return new()
System.Windows.Forms.Tests (1)
System\Windows\Forms\DragDropFormatTests.cs (1)
136Com.STGMEDIUM dataRefresh = new()
139 references to STGMEDIUM
PresentationCore (5)
System\Windows\dataobject.cs (3)
606HRESULT Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) => 609HRESULT Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) => 618HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) =>
System\Windows\Ole\WpfOleServices.cs (2)
27public static HRESULT GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) 110result = dataObject->GetData(formatEtc, out STGMEDIUM medium);
System.Private.Windows.Core (84)
System\Private\Windows\Ole\Composition.cs (3)
186public HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) => _nativeDataObject.GetData(pformatetcIn, pmedium); 187public HRESULT GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) => _nativeDataObject.GetDataHere(pformatetc, pmedium); 189public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _nativeDataObject.SetData(pformatetc, pmedium, fRelease);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (4)
36public HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) 95public HRESULT GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) 194public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) 269private HRESULT SaveDataToHGLOBAL(object data, string format, ref STGMEDIUM medium)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (5)
58public HRESULT GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) 64public HRESULT GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) 82public HRESULT SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) 306HRESULT hr = dataObject->GetData(formatetc, out Com.STGMEDIUM medium); 361|| dataObject->GetData(formatEtc, out Com.STGMEDIUM medium).Failed)
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (5)
78Com.STGMEDIUM nativeMedium = default; 88Com.STGMEDIUM nativeMedium = (Com.STGMEDIUM)medium; 103Com.STGMEDIUM nativeMedium = (Com.STGMEDIUM)medium;
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (5)
87HRESULT Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) 97*pmedium = (Com.STGMEDIUM)medium; 106HRESULT Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) 123*pmedium = (Com.STGMEDIUM)medium; 129HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease)
System\Private\Windows\Ole\DragDropFormat.cs (8)
17private STGMEDIUM _medium; 19public STGMEDIUM Medium => _medium; 24public DragDropFormat(ushort format, STGMEDIUM medium, bool copyData) 35public STGMEDIUM GetData() => CopyData(_format, _medium); 40public void RefreshData(ushort format, STGMEDIUM medium, bool copyData) 55private static unsafe STGMEDIUM CopyData(ushort format, STGMEDIUM mediumSource) 57STGMEDIUM mediumDestination = default;
System\Private\Windows\Ole\DragDropHelper.cs (2)
199STGMEDIUM medium = new() 357STGMEDIUM medium = new()
System\Private\Windows\Ole\IOleServices.cs (2)
29/// <inheritdoc cref="IDataObject.GetDataHere(FORMATETC*, STGMEDIUM*)"/> 30static abstract HRESULT GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium);
Windows.Win32.IAdviseSink.g.cs (8)
55 /// <inheritdoc cref="OnDataChange(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 56 internal unsafe void OnDataChange(in winmdroot.System.Com.FORMATETC pFormatetc, in winmdroot.System.Com.STGMEDIUM pStgmed) 58 fixed (winmdroot.System.Com.STGMEDIUM* pStgmedLocal = &pStgmed) 70 private static void OnDataChange(IAdviseSink* pThis, winmdroot.System.Com.FORMATETC* pFormatetc, winmdroot.System.Com.STGMEDIUM* pStgmed) 92 public unsafe void OnDataChange(winmdroot.System.Com.FORMATETC* pFormatetc, winmdroot.System.Com.STGMEDIUM* pStgmed) 94 ((delegate *unmanaged [Stdcall]<IAdviseSink*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,void>)lpVtbl[3])((IAdviseSink*)Unsafe.AsPointer(ref this), pFormatetc, pStgmed); 233 internal delegate *unmanaged [Stdcall]<IAdviseSink*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,void> OnDataChange_4; 272 unsafe void OnDataChange(winmdroot.System.Com.FORMATETC* pFormatetc, winmdroot.System.Com.STGMEDIUM* pStgmed);
Windows.Win32.IDataObject.g.cs (24)
55 /// <inheritdoc cref="GetData(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT GetData(in winmdroot.System.Com.FORMATETC pformatetcIn, out winmdroot.System.Com.STGMEDIUM pmedium) 58 fixed (winmdroot.System.Com.STGMEDIUM* pmediumLocal = &pmedium) 71 private static winmdroot.Foundation.HRESULT GetData(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetcIn, winmdroot.System.Com.STGMEDIUM* pmedium) 99 public unsafe winmdroot.Foundation.HRESULT GetData(winmdroot.System.Com.FORMATETC* pformatetcIn, winmdroot.System.Com.STGMEDIUM* pmedium) 101 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDataObject*)Unsafe.AsPointer(ref this), pformatetcIn, pmedium); 104 /// <inheritdoc cref="GetDataHere(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 105 internal unsafe winmdroot.Foundation.HRESULT GetDataHere(in winmdroot.System.Com.FORMATETC pformatetc, ref winmdroot.System.Com.STGMEDIUM pmedium) 107 fixed (winmdroot.System.Com.STGMEDIUM* pmediumLocal = &pmedium) 120 private static winmdroot.Foundation.HRESULT GetDataHere(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium) 148 public unsafe winmdroot.Foundation.HRESULT GetDataHere(winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium) 150 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDataObject*)Unsafe.AsPointer(ref this), pformatetc, pmedium); 244 /// <inheritdoc cref="SetData(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*, winmdroot.Foundation.BOOL)"/> 245 internal unsafe winmdroot.Foundation.HRESULT SetData(in winmdroot.System.Com.FORMATETC pformatetc, in winmdroot.System.Com.STGMEDIUM pmedium, winmdroot.Foundation.BOOL fRelease) 247 fixed (winmdroot.System.Com.STGMEDIUM* pmediumLocal = &pmedium) 260 private static winmdroot.Foundation.HRESULT SetData(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium, winmdroot.Foundation.BOOL fRelease) 289 public unsafe winmdroot.Foundation.HRESULT SetData(winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium, winmdroot.Foundation.BOOL fRelease) 291 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IDataObject*)Unsafe.AsPointer(ref this), pformatetc, pmedium, fRelease); 488 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT> GetData_4; 490 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT> GetDataHere_5; 496 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> SetData_8; 539 unsafe winmdroot.Foundation.HRESULT GetData(winmdroot.System.Com.FORMATETC* pformatetcIn, winmdroot.System.Com.STGMEDIUM* pmedium); 542 unsafe winmdroot.Foundation.HRESULT GetDataHere(winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium); 551 unsafe winmdroot.Foundation.HRESULT SetData(winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium, winmdroot.Foundation.BOOL fRelease);
Windows.Win32.PInvokeCore.OLE32.dll.g.cs (4)
230 /// <inheritdoc cref="ReleaseStgMedium(winmdroot.System.Com.STGMEDIUM*)"/> 232 internal static unsafe void ReleaseStgMedium(ref winmdroot.System.Com.STGMEDIUM param0) 234 fixed (winmdroot.System.Com.STGMEDIUM* param0Local = &param0) 248 internal static extern unsafe void ReleaseStgMedium(winmdroot.System.Com.STGMEDIUM* param0);
Windows.Win32.System_Com_IAdviseSink_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Com.IAdviseSink.Interface.OnDataChange(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 24 internal static unsafe void OnDataChange(this winmdroot.System.Com.IAdviseSink.Interface @this, in winmdroot.System.Com.FORMATETC pFormatetc, in winmdroot.System.Com.STGMEDIUM pStgmed) 26 fixed (winmdroot.System.Com.STGMEDIUM* pStgmedLocal = &pStgmed)
Windows.Win32.System_Com_IDataObject_Extensions.g.cs (9)
23 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.GetData(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetData(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetcIn, out winmdroot.System.Com.STGMEDIUM pmedium) 26 fixed (winmdroot.System.Com.STGMEDIUM* pmediumLocal = &pmedium) 36 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.GetDataHere(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 37 internal static unsafe winmdroot.Foundation.HRESULT GetDataHere(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetc, ref winmdroot.System.Com.STGMEDIUM pmedium) 39 fixed (winmdroot.System.Com.STGMEDIUM* pmediumLocal = &pmedium) 72 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.SetData(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*, winmdroot.Foundation.BOOL)"/> 73 internal static unsafe winmdroot.Foundation.HRESULT SetData(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetc, in winmdroot.System.Com.STGMEDIUM pmedium, winmdroot.Foundation.BOOL fRelease) 75 fixed (winmdroot.System.Com.STGMEDIUM* pmediumLocal = &pmedium)
Windows\Win32\System\Com\STGMEDIUM.cs (2)
13public static explicit operator STGMEDIUM(ComType.STGMEDIUM comTypeStg) 28public static explicit operator ComType.STGMEDIUM(STGMEDIUM stg) => new()
System.Private.Windows.Core.Tests (15)
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
41static unsafe HRESULT IOleServices.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) => throw new NotImplementedException();
System\Private\Windows\Ole\DataObjectProxy.cs (6)
47public HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) => _original->GetData(pformatetcIn, pmedium); 48public HRESULT GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) => _original->GetDataHere(pformatetc, pmedium); 51public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _original->SetData(pformatetc, pmedium, fRelease); 128private static unsafe HRESULT GetData(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium) => 132private static unsafe HRESULT GetDataHere(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium) => 144private static unsafe HRESULT SetData(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium, BOOL fRelease) =>
System\Private\Windows\Ole\HGlobalNativeDataObject.cs (1)
50public override HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium)
System\Private\Windows\Ole\MockOleServices.cs (1)
20static unsafe HRESULT IOleServices.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) => HRESULT.DV_E_TYMED;
System\Private\Windows\Ole\NativeDataObjectMock.cs (3)
11public virtual HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) => throw new NotImplementedException(); 12public virtual HRESULT GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) => throw new NotImplementedException(); 15public virtual HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => throw new NotImplementedException();
System\Private\Windows\Ole\TestDataObject.cs (3)
117public unsafe HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium) => _innerData.GetData(pformatetcIn, pmedium); 118public unsafe HRESULT GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium) => _innerData.GetDataHere(pformatetc, pmedium); 121public unsafe HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _innerData.SetData(pformatetc, pmedium, fRelease);
System.Windows.Forms (5)
System\Windows\Forms\OLE\DataObject.cs (3)
332HRESULT Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) => 335HRESULT Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) => 344HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) =>
System\Windows\Forms\OLE\WinFormsOleServices.cs (2)
36static unsafe HRESULT IOleServices.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) 94result = dataObject->GetData(formatEtc, out STGMEDIUM medium);
System.Windows.Forms.Primitives (23)
Windows.Win32.BINDINFO.g.cs (1)
29 internal winmdroot.System.Com.STGMEDIUM stgmedData;
Windows.Win32.IAdviseSinkEx.g.cs (8)
55 /// <inheritdoc cref="OnDataChange(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 56 internal unsafe void OnDataChange(in winmdroot.System.Com.FORMATETC pFormatetc, in winmdroot.System.Com.STGMEDIUM pStgmed) 58 fixed (winmdroot.System.Com.STGMEDIUM* pStgmedLocal = &pStgmed) 70 private static void OnDataChange(IAdviseSinkEx* pThis, winmdroot.System.Com.FORMATETC* pFormatetc, winmdroot.System.Com.STGMEDIUM* pStgmed) 85 public unsafe void OnDataChange(winmdroot.System.Com.FORMATETC* pFormatetc, winmdroot.System.Com.STGMEDIUM* pStgmed) 87 ((delegate *unmanaged [Stdcall]<IAdviseSinkEx*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,void>)lpVtbl[3])((IAdviseSinkEx*)Unsafe.AsPointer(ref this), pFormatetc, pStgmed); 236 internal delegate *unmanaged [Stdcall]<IAdviseSinkEx*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,void> OnDataChange_4; 278 unsafe new void OnDataChange(winmdroot.System.Com.FORMATETC* pFormatetc, winmdroot.System.Com.STGMEDIUM* pStgmed);
Windows.Win32.IBindStatusCallback.g.cs (8)
243 /// <inheritdoc cref="OnDataAvailable(uint, uint, winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 244 internal unsafe void OnDataAvailable(uint grfBSCF, uint dwSize, in winmdroot.System.Com.FORMATETC pformatetc, in winmdroot.System.Com.STGMEDIUM pstgmed) 246 fixed (winmdroot.System.Com.STGMEDIUM* pstgmedLocal = &pstgmed) 258 private static winmdroot.Foundation.HRESULT OnDataAvailable(IBindStatusCallback* pThis, uint grfBSCF, uint dwSize, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pstgmed) 275 public unsafe void OnDataAvailable(uint grfBSCF, uint dwSize, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pstgmed) 277 ((delegate *unmanaged [Stdcall]<IBindStatusCallback*,uint ,uint ,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IBindStatusCallback*)Unsafe.AsPointer(ref this), grfBSCF, dwSize, pformatetc, pstgmed).ThrowOnFailure(); 353 internal delegate *unmanaged [Stdcall]<IBindStatusCallback*,uint ,uint ,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT> OnDataAvailable_10; 406 unsafe winmdroot.Foundation.HRESULT OnDataAvailable(uint grfBSCF, uint dwSize, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pstgmed);
Windows.Win32.System_Com_IBindStatusCallback_Extensions.g.cs (3)
66 /// <inheritdoc cref="winmdroot.System.Com.IBindStatusCallback.Interface.OnDataAvailable(uint, uint, winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 67 internal static unsafe winmdroot.Foundation.HRESULT OnDataAvailable(this winmdroot.System.Com.IBindStatusCallback.Interface @this, uint grfBSCF, uint dwSize, in winmdroot.System.Com.FORMATETC pformatetc, in winmdroot.System.Com.STGMEDIUM pstgmed) 69 fixed (winmdroot.System.Com.STGMEDIUM* pstgmedLocal = &pstgmed)
Windows.Win32.System_Ole_IAdviseSinkEx_Extensions.g.cs (3)
23 /// <inheritdoc cref="winmdroot.System.Ole.IAdviseSinkEx.Interface.OnDataChange(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 24 internal static unsafe void OnDataChange(this winmdroot.System.Ole.IAdviseSinkEx.Interface @this, in winmdroot.System.Com.FORMATETC pFormatetc, in winmdroot.System.Com.STGMEDIUM pStgmed) 26 fixed (winmdroot.System.Com.STGMEDIUM* pStgmedLocal = &pStgmed)
System.Windows.Forms.Tests (7)
System\Windows\Forms\DataObjectTests.cs (1)
2924HRESULT result = comDataObject.Value->GetData(formatetc, out Com.STGMEDIUM medium);
System\Windows\Forms\DragDropFormatTests.cs (6)
74dragDropFormat = new DragDropFormat((ushort)formatEtc.cfFormat, (Com.STGMEDIUM)medium, copyData: false); 96dragDropFormat = new DragDropFormat((ushort)formatEtc.cfFormat, (Com.STGMEDIUM)medium, copyData: false); 97Com.STGMEDIUM data = dragDropFormat.GetData(); 135dragDropFormat = new DragDropFormat((ushort)formatEtc.cfFormat, (Com.STGMEDIUM)medium, copyData: false); 136Com.STGMEDIUM dataRefresh = new() 155Com.STGMEDIUM data = dragDropFormat.GetData();