4 implementations of IOleServices
PresentationCore (1)
System\Windows\Ole\WpfOleServices.cs (1)
20
internal sealed unsafe class WpfOleServices :
IOleServices
System.Private.Windows.Core.Tests (2)
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
36
private class InvalidThreadOleServices() :
IOleServices
System\Private\Windows\Ole\MockOleServices.cs (1)
14
internal class MockOleServices<TTestClass> :
IOleServices
System.Windows.Forms (1)
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
15
internal sealed class WinFormsOleServices :
IOleServices
39 references to IOleServices
PresentationCore (3)
System\Windows\Ole\WpfOleServices.cs (3)
183
static HRESULT
IOleServices
.OleGetClipboard(Com.IDataObject** dataObject) =>
186
static HRESULT
IOleServices
.OleSetClipboard(Com.IDataObject* dataObject) =>
189
static HRESULT
IOleServices
.OleFlushClipboard() =>
System.Private.Windows.Core (4)
System\Private\Windows\Ole\ClipboardCore.cs (1)
13
where TOleServices :
IOleServices
System\Private\Windows\Ole\Composition.cs (1)
19
where TOleServices :
IOleServices
System\Private\Windows\Ole\DataStore.cs (1)
10
internal sealed partial class DataStore<TOleServices> : IDataObjectInternal where TOleServices :
IOleServices
System\Private\Windows\Ole\DragDropHelper.cs (1)
24
where TOleServices :
IOleServices
System.Private.Windows.Core.Tests (23)
System\Private\Windows\Ole\ClipboardCoreTests.cs (10)
38
static bool
IOleServices
.AllowTypeWithoutResolver<T>() => throw new NotImplementedException();
39
static IComVisibleDataObject
IOleServices
.CreateDataObject() => throw new NotImplementedException();
40
static void
IOleServices
.EnsureThreadState() => throw new ThreadStateException();
41
static unsafe HRESULT
IOleServices
.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) => throw new NotImplementedException();
42
static bool
IOleServices
.IsValidTypeForFormat(Type type, string format) => throw new NotImplementedException();
43
static HRESULT
IOleServices
.OleFlushClipboard() => throw new NotImplementedException();
44
static unsafe HRESULT
IOleServices
.OleGetClipboard(IDataObject** dataObject) => throw new NotImplementedException();
45
static unsafe HRESULT
IOleServices
.OleSetClipboard(IDataObject* dataObject) => throw new NotImplementedException();
46
static unsafe bool
IOleServices
.TryGetObjectFromDataObject<T>(IDataObject* dataObject, string requestedFormat, [NotNullWhen(true)] out T data) => throw new NotImplementedException();
47
static void
IOleServices
.ValidateDataStoreData(ref string format, bool autoConvert, object? data) => throw new NotImplementedException();
System\Private\Windows\Ole\ClipboardScope.cs (1)
11
internal ref struct ClipboardScope<TOleServices> where TOleServices :
IOleServices
System\Private\Windows\Ole\MockOleServices.cs (11)
11
/// Mock implementation of <see cref="
IOleServices
"/> for testing purposes.
18
static bool
IOleServices
.AllowTypeWithoutResolver<T>() => true;
19
static void
IOleServices
.EnsureThreadState() { }
20
static unsafe HRESULT
IOleServices
.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium) => HRESULT.DV_E_TYMED;
21
static bool
IOleServices
.IsValidTypeForFormat(Type type, string format) => true;
22
static void
IOleServices
.ValidateDataStoreData(ref string format, bool autoConvert, object? data) { }
24
static unsafe bool
IOleServices
.TryGetObjectFromDataObject<T>(
33
static HRESULT
IOleServices
.OleFlushClipboard()
39
static unsafe HRESULT
IOleServices
.OleGetClipboard(IDataObject** dataObject)
57
static unsafe HRESULT
IOleServices
.OleSetClipboard(IDataObject* dataObject)
76
static IComVisibleDataObject
IOleServices
.CreateDataObject() => new TestDataObject<MockOleServices<TTestClass>>();
System\Private\Windows\Ole\TestDataObject.cs (1)
16
where TOleServices :
IOleServices
System.Windows.Forms (9)
System\Windows\Forms\OLE\WinFormsOleServices.cs (9)
36
static unsafe HRESULT
IOleServices
.GetDataHere(string format, object data, FORMATETC* pformatetc, STGMEDIUM* pmedium)
60
static unsafe bool
IOleServices
.TryGetObjectFromDataObject<T>(
125
static bool
IOleServices
.AllowTypeWithoutResolver<T>() =>
129
static void
IOleServices
.ValidateDataStoreData(ref string format, bool autoConvert, object? data)
140
static bool
IOleServices
.IsValidTypeForFormat(Type type, string format) => format switch
147
static IComVisibleDataObject
IOleServices
.CreateDataObject() =>
150
static unsafe HRESULT
IOleServices
.OleGetClipboard(Com.IDataObject** dataObject) =>
153
static unsafe HRESULT
IOleServices
.OleSetClipboard(Com.IDataObject* dataObject) =>
156
static HRESULT
IOleServices
.OleFlushClipboard() =>