16 instantiations of FORMATETC
System.Private.Windows.Core (2)
System\Private\Windows\Ole\FormatEnumerator.cs (2)
40ComTypes.FORMATETC temp = new() 65rgelt[0] = new()
System.Windows.Forms.Tests (14)
System\Windows\Forms\ClipboardTests.cs (1)
924ComTypes.FORMATETC formatetc = new()
System\Windows\Forms\DataObjectTests.cs (10)
2463FORMATETC formatetc = new() 2506FORMATETC formatetc = new() 2543FORMATETC formatetc = new() 2565FORMATETC formatetc = new() 2586FORMATETC formatetc = new() 2627FORMATETC formatetc = new() 2666FORMATETC formatetc = new() 2685FORMATETC formatetc = new() 2708FORMATETC formatetc = new() 2733FORMATETC formatetc = new()
System\Windows\Forms\DragDropFormatTests.cs (2)
24FORMATETC formatEtc = new() 47formatEtc = new()
System\Windows\Forms\DragDropHelperTests.cs (1)
98FORMATETC formatEtc = new()
165 references to FORMATETC
ComDisabled.Tests (15)
ClipboardComTests.cs (8)
81public static extern int SHCreateStdEnumFmtEtc(uint cfmt, ComTypes.FORMATETC[] afmt, out ComTypes.IEnumFORMATETC ppenumFormatEtc); 83int ComTypes.IDataObject.DAdvise(ref ComTypes.FORMATETC pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 101int ComTypes.IDataObject.GetCanonicalFormatEtc(ref ComTypes.FORMATETC formatIn, out ComTypes.FORMATETC formatOut) => throw new NotImplementedException(); 105void ComTypes.IDataObject.GetData(ref ComTypes.FORMATETC format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 106void ComTypes.IDataObject.GetDataHere(ref ComTypes.FORMATETC format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 112int ComTypes.IDataObject.QueryGetData(ref ComTypes.FORMATETC format) => throw new NotImplementedException(); 117void ComTypes.IDataObject.SetData(ref ComTypes.FORMATETC formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();
DataObjectComTests.cs (7)
90public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 94public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) => throw new NotImplementedException(); 95public void GetData(ref FORMATETC format, out STGMEDIUM medium) => throw new NotImplementedException(); 96public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) => throw new NotImplementedException(); 97public int QueryGetData(ref FORMATETC format) => throw new NotImplementedException(); 98public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
netstandard (1)
netstandard.cs (1)
1635[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.FORMATETC))]
PresentationCore (7)
System\Windows\dataobject.cs (7)
564int ComTypes.IDataObject.DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection) => 575int ComTypes.IDataObject.GetCanonicalFormatEtc(ref FORMATETC pformatetcIn, out FORMATETC pformatetcOut) => 578void ComTypes.IDataObject.GetData(ref FORMATETC formatetc, out STGMEDIUM medium) => 581void ComTypes.IDataObject.GetDataHere(ref FORMATETC formatetc, ref STGMEDIUM medium) => 584int ComTypes.IDataObject.QueryGetData(ref FORMATETC formatetc) => 587void ComTypes.IDataObject.SetData(ref FORMATETC pFormatetcIn, ref STGMEDIUM pmedium, bool fRelease) =>
System (1)
src\libraries\shims\System\ref\System.cs (1)
821[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.FORMATETC))]
System.Private.Windows.Core (42)
System\Private\Windows\Ole\Composition.cs (7)
193public int DAdvise(ref ComTypes.FORMATETC pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => _runtimeDataObject.DAdvise(ref pFormatetc, advf, adviseSink, out connection); 197public int GetCanonicalFormatEtc(ref ComTypes.FORMATETC formatIn, out ComTypes.FORMATETC formatOut) => _runtimeDataObject.GetCanonicalFormatEtc(ref formatIn, out formatOut); 198public void GetData(ref ComTypes.FORMATETC format, out ComTypes.STGMEDIUM medium) => _runtimeDataObject.GetData(ref format, out medium); 199public void GetDataHere(ref ComTypes.FORMATETC format, ref ComTypes.STGMEDIUM medium) => _runtimeDataObject.GetDataHere(ref format, ref medium); 200public int QueryGetData(ref ComTypes.FORMATETC format) => _runtimeDataObject.QueryGetData(ref format); 201public void SetData(ref ComTypes.FORMATETC formatIn, ref ComTypes.STGMEDIUM medium, bool release) => _runtimeDataObject.SetData(ref formatIn, ref medium, release);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (14)
29public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) 32fixed (Com.FORMATETC* nativeFormat = &Unsafe.As<FORMATETC, Com.FORMATETC>(ref pFormatetc)) 67public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) 70HRESULT result = nativeDataObject.Value->GetCanonicalFormatEtc(Unsafe.As<FORMATETC, Com.FORMATETC>(ref formatIn), out Com.FORMATETC nativeFormat); 71formatOut = Unsafe.As<Com.FORMATETC, FORMATETC>(ref nativeFormat); 75public void GetData(ref FORMATETC format, out STGMEDIUM medium) 77Com.FORMATETC nativeFormat = Unsafe.As<FORMATETC, Com.FORMATETC>(ref format); 85public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) 87Com.FORMATETC nativeFormat = Unsafe.As<FORMATETC, Com.FORMATETC>(ref format); 95public int QueryGetData(ref FORMATETC format) 98return nativeDataObject.Value->QueryGetData(Unsafe.As<FORMATETC, Com.FORMATETC>(ref format)); 101public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) 104Com.FORMATETC nativeFormat = Unsafe.As<FORMATETC, Com.FORMATETC>(ref formatIn);
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (14)
21public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => _runtimeDataObject.DAdvise(ref pFormatetc, advf, adviseSink, out connection); 25public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) => _runtimeDataObject.GetCanonicalFormatEtc(ref formatIn, out formatOut); 26public void GetData(ref FORMATETC format, out STGMEDIUM medium) => _runtimeDataObject.GetData(ref format, out medium); 27public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) => _runtimeDataObject.GetDataHere(ref format, ref medium); 28public int QueryGetData(ref FORMATETC format) => _runtimeDataObject.QueryGetData(ref format); 29public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) => _runtimeDataObject.SetData(ref formatIn, ref medium, release); 36return (HRESULT)DAdvise(ref *(FORMATETC*)pformatetc, (ADVF)advf, adviseSink, out *(int*)pdwConnection); 85(HRESULT)GetCanonicalFormatEtc(ref *(FORMATETC*)pformatectIn, out *(FORMATETC*)pformatetcOut); 96GetData(ref *(FORMATETC*)pformatetcIn, out STGMEDIUM medium); 116GetDataHere(ref *(FORMATETC*)pformatetc, ref medium); 127HRESULT Com.IDataObject.Interface.QueryGetData(Com.FORMATETC* pformatetc) => (HRESULT)QueryGetData(ref *(FORMATETC*)pformatetc); 139SetData(ref *(FORMATETC*)pformatetc, ref medium, fRelease);
System\Private\Windows\Ole\FormatEnumerator.cs (7)
17private readonly List<ComTypes.FORMATETC> _formats = []; 40ComTypes.FORMATETC temp = new() 55public int Next(int celt, ComTypes.FORMATETC[] rgelt, int[]? pceltFetched) 64ComTypes.FORMATETC current = _formats[_current]; 109ComTypes.FORMATETC[] elt = new ComTypes.FORMATETC[celt]; 117rgelt[i] = Unsafe.As<ComTypes.FORMATETC, FORMATETC>(ref elt[i]);
System.Runtime.InteropServices (10)
System\Runtime\InteropServices\ComTypes\IAdviseSink.cs (1)
28void OnDataChange([In] ref FORMATETC format, [In] ref STGMEDIUM stgmedium);
System\Runtime\InteropServices\ComTypes\IDataObject.cs (7)
29void GetData([In] ref FORMATETC format, out STGMEDIUM medium); 36void GetDataHere([In] ref FORMATETC format, ref STGMEDIUM medium); 45int QueryGetData([In] ref FORMATETC format); 54int GetCanonicalFormatEtc([In] ref FORMATETC formatIn, out FORMATETC formatOut); 60void SetData([In] ref FORMATETC formatIn, [In] ref STGMEDIUM medium, [MarshalAs(UnmanagedType.Bool)] bool release); 75int DAdvise([In] ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection);
System\Runtime\InteropServices\ComTypes\IEnumFormatETC.cs (1)
27int Next(int celt, [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] FORMATETC[] rgelt, [Out, MarshalAs(UnmanagedType.LPArray)] int[] pceltFetched);
System\Runtime\InteropServices\ComTypes\STATDATA.cs (1)
11public FORMATETC formatetc;
System.Windows.Forms (7)
System\Windows\Forms\OLE\DataObject.cs (7)
290int ComTypes.IDataObject.DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection) => 301int ComTypes.IDataObject.GetCanonicalFormatEtc(ref FORMATETC pformatetcIn, out FORMATETC pformatetcOut) => 304void ComTypes.IDataObject.GetData(ref FORMATETC formatetc, out STGMEDIUM medium) => 307void ComTypes.IDataObject.GetDataHere(ref FORMATETC formatetc, ref STGMEDIUM medium) => 310int ComTypes.IDataObject.QueryGetData(ref FORMATETC formatetc) => 313void ComTypes.IDataObject.SetData(ref FORMATETC pFormatetcIn, ref STGMEDIUM pmedium, bool fRelease) =>
System.Windows.Forms.Tests (75)
System\Windows\Forms\ClipboardTests.cs (16)
506public static extern int SHCreateStdEnumFmtEtc(uint cfmt, ComTypes.FORMATETC[] afmt, out ComTypes.IEnumFORMATETC ppenumFormatEtc); 508int ComTypes.IDataObject.DAdvise(ref ComTypes.FORMATETC pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 526int ComTypes.IDataObject.GetCanonicalFormatEtc(ref ComTypes.FORMATETC formatIn, out ComTypes.FORMATETC formatOut) => throw new NotImplementedException(); 530void ComTypes.IDataObject.GetData(ref ComTypes.FORMATETC format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 531void ComTypes.IDataObject.GetDataHere(ref ComTypes.FORMATETC format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 537int ComTypes.IDataObject.QueryGetData(ref ComTypes.FORMATETC format) => throw new NotImplementedException(); 542void ComTypes.IDataObject.SetData(ref ComTypes.FORMATETC formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException(); 924ComTypes.FORMATETC formatetc = new() 1064public int DAdvise(ref ComTypes.FORMATETC pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 1068public int GetCanonicalFormatEtc(ref ComTypes.FORMATETC formatIn, out ComTypes.FORMATETC formatOut) => throw new NotImplementedException(); 1069public void SetData(ref ComTypes.FORMATETC formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException(); 1070public void GetData(ref ComTypes.FORMATETC format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 1071public void GetDataHere(ref ComTypes.FORMATETC format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 1072public int QueryGetData(ref ComTypes.FORMATETC format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectComTests.cs (7)
71public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 75public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) => throw new NotImplementedException(); 76public void GetData(ref FORMATETC format, out STGMEDIUM medium) => throw new NotImplementedException(); 77public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) => throw new NotImplementedException(); 78public int QueryGetData(ref FORMATETC format) => throw new NotImplementedException(); 79public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (38)
1926public void GetData(ref FORMATETC format, out STGMEDIUM medium) 1937public int QueryGetData(ref FORMATETC format) 1948public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) => throw new NotImplementedException(); 1949public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) => throw new NotImplementedException(); 1950public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException(); 1951public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 1975FORMATETC formatetc = default; 1980private delegate void DAdviseCallback(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection); 1988.Setup(o => o.DAdvise(ref It.Ref<FORMATETC>.IsAny, advf, adviseSink, out It.Ref<int>.IsAny)) 1989.Callback((DAdviseCallback)((ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => 1997FORMATETC formatetc = default; 2001mockComDataObject.Verify(o => o.DAdvise(ref It.Ref<FORMATETC>.IsAny, advf, adviseSink, out It.Ref<int>.IsAny), Times.Once()); 2087var result = new FORMATETC[1]; 2142var result = new FORMATETC[2]; 2204var result = new FORMATETC[1]; 2229var result = new FORMATETC[1]; 2252var result = new FORMATETC[1]; 2303var result = new FORMATETC[1]; 2332var result = new FORMATETC[2]; 2395var result = new FORMATETC[1]; 2463FORMATETC formatetc = new() 2506FORMATETC formatetc = new() 2543FORMATETC formatetc = new() 2565FORMATETC formatetc = new() 2586FORMATETC formatetc = new() 2627FORMATETC formatetc = new() 2666FORMATETC formatetc = new() 2685FORMATETC formatetc = new() 2708FORMATETC formatetc = new() 2733FORMATETC formatetc = new() 2751public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 2755public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) => throw new NotImplementedException(); 2756public void GetData(ref FORMATETC format, out STGMEDIUM medium) => throw new NotImplementedException(); 2760public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) => throw new NotImplementedException(); 2766public int QueryGetData(ref FORMATETC format) => throw new NotImplementedException(); 2767public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
System\Windows\Forms\DragDropFormatTests.cs (5)
8using FORMATETC = System.Runtime.InteropServices.ComTypes.FORMATETC; 24FORMATETC formatEtc = new() 68public void DragDropFormat_Set_Dispose_ReturnsExpected(FORMATETC formatEtc, STGMEDIUM medium) 90public void DragDropFormat_Set_GetData_ReturnsExpected(FORMATETC formatEtc, STGMEDIUM medium) 129public void DragDropFormat_Set_RefreshData_ReturnsExpected(FORMATETC formatEtc, STGMEDIUM medium)
System\Windows\Forms\DragDropHelperTests.cs (2)
98FORMATETC formatEtc = new() 107Assert.Equal(expectedIsInDragLoopFormat, DragDropHelper.IsInDragLoopFormat(Unsafe.As<FORMATETC, Com.FORMATETC>(ref formatEtc)));
System\Windows\Forms\ToolStripItemTests.cs (7)
10258public void GetData(ref FORMATETC format, out STGMEDIUM medium) => throw new NotImplementedException(); 10259public void GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) => throw new NotImplementedException(); 10260public int QueryGetData(ref FORMATETC format) => throw new NotImplementedException(); 10261public int GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) => throw new NotImplementedException(); 10262public void SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException(); 10264public int DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
System.Windows.Forms.TestUtilities (7)
Data\ManagedAndRuntimeDataObject.cs (7)
12public int DAdvise(ref ComTypes.FORMATETC pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 16public int GetCanonicalFormatEtc(ref ComTypes.FORMATETC formatIn, out ComTypes.FORMATETC formatOut) => throw new NotImplementedException(); 17public void GetData(ref ComTypes.FORMATETC format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 18public void GetDataHere(ref ComTypes.FORMATETC format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 19public int QueryGetData(ref ComTypes.FORMATETC format) => throw new NotImplementedException(); 20public void SetData(ref ComTypes.FORMATETC formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();