16 instantiations of FORMATETC
System.Private.Windows.Core (2)
System\Private\Windows\Ole\FormatEnumerator.cs (2)
40
ComTypes.FORMATETC temp =
new
()
65
rgelt[0] =
new
()
System.Windows.Forms.Tests (14)
System\Windows\Forms\ClipboardTests.cs (1)
924
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
()
165 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 (7)
System\Windows\dataobject.cs (7)
564
int ComTypes.IDataObject.DAdvise(ref
FORMATETC
pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection) =>
575
int ComTypes.IDataObject.GetCanonicalFormatEtc(ref
FORMATETC
pformatetcIn, out
FORMATETC
pformatetcOut) =>
578
void ComTypes.IDataObject.GetData(ref
FORMATETC
formatetc, out STGMEDIUM medium) =>
581
void ComTypes.IDataObject.GetDataHere(ref
FORMATETC
formatetc, ref STGMEDIUM medium) =>
584
int ComTypes.IDataObject.QueryGetData(ref
FORMATETC
formatetc) =>
587
void 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)
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)
64
ComTypes.
FORMATETC
current = _formats[_current];
109
ComTypes.
FORMATETC
[] elt = new ComTypes.
FORMATETC
[celt];
117
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)
506
public static extern int SHCreateStdEnumFmtEtc(uint cfmt, ComTypes.
FORMATETC
[] afmt, out ComTypes.IEnumFORMATETC ppenumFormatEtc);
508
int ComTypes.IDataObject.DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
526
int ComTypes.IDataObject.GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => throw new NotImplementedException();
530
void ComTypes.IDataObject.GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
531
void ComTypes.IDataObject.GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
537
int ComTypes.IDataObject.QueryGetData(ref ComTypes.
FORMATETC
format) => throw new NotImplementedException();
542
void ComTypes.IDataObject.SetData(ref ComTypes.
FORMATETC
formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();
924
ComTypes.
FORMATETC
formatetc = new()
1064
public int DAdvise(ref ComTypes.
FORMATETC
pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException();
1068
public int GetCanonicalFormatEtc(ref ComTypes.
FORMATETC
formatIn, out ComTypes.
FORMATETC
formatOut) => throw new NotImplementedException();
1069
public void SetData(ref ComTypes.
FORMATETC
formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException();
1070
public void GetData(ref ComTypes.
FORMATETC
format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
1071
public void GetDataHere(ref ComTypes.
FORMATETC
format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException();
1072
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();