23 instantiations of FORMATETC
PresentationCore (7)
System\Windows\dataobject.cs (7)
604
pformatetcOut = new
FORMATETC
();
2247
temp = new
FORMATETC
2446
FORMATETC[] formatetc = [new
FORMATETC
()];
2642
formatetc = new
FORMATETC
2814
formatetc = new
FORMATETC
2856
formatetc = new
FORMATETC
();
3192
formatetc = new
FORMATETC
System.Private.Windows.Core (2)
System\Private\Windows\Ole\FormatEnumerator.cs (2)
40
ComTypes.FORMATETC temp =
new
()
68
rgelt[0] =
new
()
System.Windows.Forms.Tests (14)
System\Windows\Forms\ClipboardTests.cs (1)
1021
ComTypes.FORMATETC formatetc =
new
()
System\Windows\Forms\DataObjectTests.cs (10)
2463
FORMATETC formatetc =
new
()
2506
FORMATETC formatetc =
new
()
2543
FORMATETC formatetc =
new
()
2565
FORMATETC formatetc =
new
()
2586
FORMATETC formatetc =
new
()
2627
FORMATETC formatetc =
new
()
2666
FORMATETC formatetc =
new
()
2685
FORMATETC formatetc =
new
()
2708
FORMATETC formatetc =
new
()
2733
FORMATETC formatetc =
new
()
System\Windows\Forms\DragDropFormatTests.cs (2)
24
FORMATETC formatEtc =
new
()
47
formatEtc =
new
()
System\Windows\Forms\DragDropHelperTests.cs (1)
98
FORMATETC formatEtc =
new
()
178 references to FORMATETC
ComDisabled.Tests (15)
ClipboardComTests.cs (8)
81
public static extern int SHCreateStdEnumFmtEtc(uint cfmt, ComTypes.
FORMATETC
[] afmt, out ComTypes.IEnumFORMATETC ppenumFormatEtc);
83
int ComTypes.IDataObject.DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
101
int ComTypes.IDataObject.GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => throw new NotImplementedException();
105
void ComTypes.IDataObject.GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
106
void ComTypes.IDataObject.GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
112
int ComTypes.IDataObject.QueryGetData(ref ComTypes.
FORMATETC
format) => throw new NotImplementedException();
117
void ComTypes.IDataObject.SetData(ref ComTypes.
FORMATETC
formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();
DataObjectComTests.cs (7)
90
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
94
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut) => throw new NotImplementedException();
95
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium) => throw new NotImplementedException();
96
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium) => throw new NotImplementedException();
97
public int QueryGetData(ref
FORMATETC
format) => throw new NotImplementedException();
98
public 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 (20)
System\Windows\dataobject.cs (20)
542
int IComDataObject.DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection)
602
int IComDataObject.GetCanonicalFormatEtc(ref
FORMATETC
pformatetcIn, out
FORMATETC
pformatetcOut)
624
void IComDataObject.GetData(ref
FORMATETC
formatetc, out STGMEDIUM medium)
694
void IComDataObject.GetDataHere(ref
FORMATETC
formatetc, ref STGMEDIUM medium)
716
int IComDataObject.QueryGetData(ref
FORMATETC
formatetc)
754
void IComDataObject.SetData(ref
FORMATETC
pFormatetcIn, ref STGMEDIUM pmedium, bool fRelease)
1238
private int OleGetDataUnrestricted(ref
FORMATETC
formatetc, ref STGMEDIUM medium, bool doNotReallocate)
1401
private int GetDataIntoOleStructs(ref
FORMATETC
formatetc, ref STGMEDIUM medium, bool doNotReallocate)
2234
FORMATETC
temp;
2238
_formats = new
FORMATETC
[formats == null ? 0 : formats.Length];
2291
public int Next(int celt,
FORMATETC
[] rgelt, int[] pceltFetched)
2348
private readonly
FORMATETC
[] _formats;
2446
FORMATETC
[] formatetc = [new FORMATETC()];
2639
FORMATETC
formatetc;
2810
FORMATETC
formatetc;
2851
FORMATETC
formatetc;
3189
FORMATETC
formatetc;
3209
private int QueryGetDataInner(ref
FORMATETC
formatetc)
3214
private void GetDataInner(ref
FORMATETC
formatetc, out STGMEDIUM medium)
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)
193
public int DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => _runtimeDataObject.DAdvise(ref pFormatetc, advf, adviseSink, out connection);
197
public int GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => _runtimeDataObject.GetCanonicalFormatEtc(ref formatIn, out formatOut);
198
public void GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => _runtimeDataObject.GetData(ref format, out medium);
199
public void GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => _runtimeDataObject.GetDataHere(ref format, ref medium);
200
public int QueryGetData(ref ComTypes.
FORMATETC
format) => _runtimeDataObject.QueryGetData(ref format);
201
public 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)
29
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection)
32
fixed (Com.FORMATETC* nativeFormat = &Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref pFormatetc))
67
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut)
70
HRESULT result = nativeDataObject.Value->GetCanonicalFormatEtc(Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref formatIn), out Com.FORMATETC nativeFormat);
71
formatOut = Unsafe.As<Com.FORMATETC,
FORMATETC
>(ref nativeFormat);
75
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium)
77
Com.FORMATETC nativeFormat = Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref format);
85
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium)
87
Com.FORMATETC nativeFormat = Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref format);
95
public int QueryGetData(ref
FORMATETC
format)
98
return nativeDataObject.Value->QueryGetData(Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref format));
101
public void SetData(ref
FORMATETC
formatIn, ref STGMEDIUM medium, bool release)
104
Com.FORMATETC nativeFormat = Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref formatIn);
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (14)
21
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => _runtimeDataObject.DAdvise(ref pFormatetc, advf, adviseSink, out connection);
25
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut) => _runtimeDataObject.GetCanonicalFormatEtc(ref formatIn, out formatOut);
26
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium) => _runtimeDataObject.GetData(ref format, out medium);
27
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium) => _runtimeDataObject.GetDataHere(ref format, ref medium);
28
public int QueryGetData(ref
FORMATETC
format) => _runtimeDataObject.QueryGetData(ref format);
29
public void SetData(ref
FORMATETC
formatIn, ref STGMEDIUM medium, bool release) => _runtimeDataObject.SetData(ref formatIn, ref medium, release);
36
return (HRESULT)DAdvise(ref *(
FORMATETC
*)pformatetc, (ADVF)advf, adviseSink, out *(int*)pdwConnection);
85
(HRESULT)GetCanonicalFormatEtc(ref *(
FORMATETC
*)pformatectIn, out *(
FORMATETC
*)pformatetcOut);
96
GetData(ref *(
FORMATETC
*)pformatetcIn, out STGMEDIUM medium);
116
GetDataHere(ref *(
FORMATETC
*)pformatetc, ref medium);
127
HRESULT Com.IDataObject.Interface.QueryGetData(Com.FORMATETC* pformatetc) => (HRESULT)QueryGetData(ref *(
FORMATETC
*)pformatetc);
139
SetData(ref *(
FORMATETC
*)pformatetc, ref medium, fRelease);
System\Private\Windows\Ole\FormatEnumerator.cs (7)
17
private readonly List<ComTypes.
FORMATETC
> _formats = [];
40
ComTypes.
FORMATETC
temp = new()
55
public int Next(int celt, ComTypes.
FORMATETC
[] rgelt, int[]? pceltFetched)
67
ComTypes.
FORMATETC
current = _formats[_current];
115
ComTypes.
FORMATETC
[] elt = new ComTypes.
FORMATETC
[celt];
123
rgelt[i] = Unsafe.As<ComTypes.
FORMATETC
, FORMATETC>(ref elt[i]);
System.Runtime.InteropServices (10)
System\Runtime\InteropServices\ComTypes\IAdviseSink.cs (1)
28
void OnDataChange([In] ref
FORMATETC
format, [In] ref STGMEDIUM stgmedium);
System\Runtime\InteropServices\ComTypes\IDataObject.cs (7)
29
void GetData([In] ref
FORMATETC
format, out STGMEDIUM medium);
36
void GetDataHere([In] ref
FORMATETC
format, ref STGMEDIUM medium);
45
int QueryGetData([In] ref
FORMATETC
format);
54
int GetCanonicalFormatEtc([In] ref
FORMATETC
formatIn, out
FORMATETC
formatOut);
60
void SetData([In] ref
FORMATETC
formatIn, [In] ref STGMEDIUM medium, [MarshalAs(UnmanagedType.Bool)] bool release);
75
int DAdvise([In] ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection);
System\Runtime\InteropServices\ComTypes\IEnumFormatETC.cs (1)
27
int Next(int celt, [Out, MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)]
FORMATETC
[] rgelt, [Out, MarshalAs(UnmanagedType.LPArray)] int[] pceltFetched);
System\Runtime\InteropServices\ComTypes\STATDATA.cs (1)
11
public
FORMATETC
formatetc;
System.Windows.Forms (7)
System\Windows\Forms\OLE\DataObject.cs (7)
290
int ComTypes.IDataObject.DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection) =>
301
int ComTypes.IDataObject.GetCanonicalFormatEtc(ref
FORMATETC
pformatetcIn, out
FORMATETC
pformatetcOut) =>
304
void ComTypes.IDataObject.GetData(ref
FORMATETC
formatetc, out STGMEDIUM medium) =>
307
void ComTypes.IDataObject.GetDataHere(ref
FORMATETC
formatetc, ref STGMEDIUM medium) =>
310
int ComTypes.IDataObject.QueryGetData(ref
FORMATETC
formatetc) =>
313
void ComTypes.IDataObject.SetData(ref
FORMATETC
pFormatetcIn, ref STGMEDIUM pmedium, bool fRelease) =>
System.Windows.Forms.Tests (75)
System\Windows\Forms\ClipboardTests.cs (16)
603
public static extern int SHCreateStdEnumFmtEtc(uint cfmt, ComTypes.
FORMATETC
[] afmt, out ComTypes.IEnumFORMATETC ppenumFormatEtc);
605
int ComTypes.IDataObject.DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
623
int ComTypes.IDataObject.GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => throw new NotImplementedException();
627
void ComTypes.IDataObject.GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
628
void ComTypes.IDataObject.GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
634
int ComTypes.IDataObject.QueryGetData(ref ComTypes.
FORMATETC
format) => throw new NotImplementedException();
639
void ComTypes.IDataObject.SetData(ref ComTypes.
FORMATETC
formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();
1021
ComTypes.
FORMATETC
formatetc = new()
1161
public int DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
1165
public int GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => throw new NotImplementedException();
1166
public void SetData(ref ComTypes.
FORMATETC
formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();
1167
public void GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
1168
public void GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
1169
public int QueryGetData(ref ComTypes.
FORMATETC
format) => throw new NotImplementedException();
System\Windows\Forms\DataObjectComTests.cs (7)
71
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
75
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut) => throw new NotImplementedException();
76
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium) => throw new NotImplementedException();
77
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium) => throw new NotImplementedException();
78
public int QueryGetData(ref
FORMATETC
format) => throw new NotImplementedException();
79
public void SetData(ref
FORMATETC
formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
System\Windows\Forms\DataObjectTests.cs (38)
1926
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium)
1937
public int QueryGetData(ref
FORMATETC
format)
1948
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium) => throw new NotImplementedException();
1949
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut) => throw new NotImplementedException();
1950
public void SetData(ref
FORMATETC
formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
1951
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
1975
FORMATETC
formatetc = default;
1980
private 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) =>
1997
FORMATETC
formatetc = default;
2001
mockComDataObject.Verify(o => o.DAdvise(ref It.Ref<
FORMATETC
>.IsAny, advf, adviseSink, out It.Ref<int>.IsAny), Times.Once());
2087
var result = new
FORMATETC
[1];
2142
var result = new
FORMATETC
[2];
2204
var result = new
FORMATETC
[1];
2229
var result = new
FORMATETC
[1];
2252
var result = new
FORMATETC
[1];
2303
var result = new
FORMATETC
[1];
2332
var result = new
FORMATETC
[2];
2395
var result = new
FORMATETC
[1];
2463
FORMATETC
formatetc = new()
2506
FORMATETC
formatetc = new()
2543
FORMATETC
formatetc = new()
2565
FORMATETC
formatetc = new()
2586
FORMATETC
formatetc = new()
2627
FORMATETC
formatetc = new()
2666
FORMATETC
formatetc = new()
2685
FORMATETC
formatetc = new()
2708
FORMATETC
formatetc = new()
2733
FORMATETC
formatetc = new()
2751
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
2755
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut) => throw new NotImplementedException();
2756
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium) => throw new NotImplementedException();
2760
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium) => throw new NotImplementedException();
2766
public int QueryGetData(ref
FORMATETC
format) => throw new NotImplementedException();
2767
public void SetData(ref
FORMATETC
formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
System\Windows\Forms\DragDropFormatTests.cs (5)
8
using FORMATETC = System.Runtime.InteropServices.ComTypes.
FORMATETC
;
24
FORMATETC
formatEtc = new()
68
public void DragDropFormat_Set_Dispose_ReturnsExpected(
FORMATETC
formatEtc, STGMEDIUM medium)
90
public void DragDropFormat_Set_GetData_ReturnsExpected(
FORMATETC
formatEtc, STGMEDIUM medium)
129
public void DragDropFormat_Set_RefreshData_ReturnsExpected(
FORMATETC
formatEtc, STGMEDIUM medium)
System\Windows\Forms\DragDropHelperTests.cs (2)
98
FORMATETC
formatEtc = new()
107
Assert.Equal(expectedIsInDragLoopFormat, DragDropHelper.IsInDragLoopFormat(Unsafe.As<
FORMATETC
, Com.FORMATETC>(ref formatEtc)));
System\Windows\Forms\ToolStripItemTests.cs (7)
10258
public void GetData(ref
FORMATETC
format, out STGMEDIUM medium) => throw new NotImplementedException();
10259
public void GetDataHere(ref
FORMATETC
format, ref STGMEDIUM medium) => throw new NotImplementedException();
10260
public int QueryGetData(ref
FORMATETC
format) => throw new NotImplementedException();
10261
public int GetCanonicalFormatEtc(ref
FORMATETC
formatIn, out
FORMATETC
formatOut) => throw new NotImplementedException();
10262
public void SetData(ref
FORMATETC
formatIn, ref STGMEDIUM medium, bool release) => throw new NotImplementedException();
10264
public int DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
System.Windows.Forms.TestUtilities (7)
Data\ManagedAndRuntimeDataObject.cs (7)
12
public int DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
16
public int GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => throw new NotImplementedException();
17
public void GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
18
public void GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
19
public int QueryGetData(ref ComTypes.
FORMATETC
format) => throw new NotImplementedException();
20
public void SetData(ref ComTypes.
FORMATETC
formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();