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