IOleServices
interface IOleServices
Platform specific OLE services.
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;
using Windows.Win32.Foundation;
using Windows.Win32.System.Com;
namespace System.Private.Windows.Ole
{
[NullableContext(1)]
internal interface IOleServices
{
void EnsureThreadState();
[NullableContext(0)]
unsafe HRESULT GetDataHere([Nullable(1)] string format, [Nullable(1)] object data, FORMATETC* pformatetc, STGMEDIUM* pmedium);
unsafe bool TryGetObjectFromDataObject<[Nullable(2)] T>([Nullable(0)] IDataObject* dataObject, string format, [NotNullWhen(true)] out T data);
bool IsValidTypeForFormat(Type type, string format);
[NullableContext(2)]
bool AllowTypeWithoutResolver<T>();
void ValidateDataStoreData(ref string format, bool autoConvert, [Nullable(2)] object data);
IComVisibleDataObject CreateDataObject();
[NullableContext(0)]
unsafe HRESULT OleGetClipboard(IDataObject** dataObject);
[NullableContext(0)]
unsafe HRESULT OleSetClipboard(IDataObject* dataObject);
HRESULT OleFlushClipboard();
}
}