357 references to IDataObject
ComDisabled.Tests (4)
DataObjectComTests.cs (4)
13private delegate IDataObject CreateManagedDataObjectForOutgoingDropData(Com.IDataObject* dataObject); 28using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 48var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 66var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
PresentationCore (17)
System\Windows\dataobject.cs (14)
28Com.IDataObject.Interface, 30Com.IManagedWrapper<Com.IDataObject>, 37static DataObject IDataObjectInternal<DataObject, IDataObject>.Create(Com.IDataObject* dataObject) => new(dataObject); 73/// Initializes a new instance of the <see cref="DataObject"/> class, with the raw <see cref="Com.IDataObject"/> 82internal DataObject(Com.IDataObject* data) => _innerData = Composition.Create(data); 594HRESULT Com.IDataObject.Interface.DAdvise(Com.FORMATETC* pformatetc, uint advf, Com.IAdviseSink* pAdvSink, uint* pdwConnection) => 597HRESULT Com.IDataObject.Interface.DUnadvise(uint dwConnection) => 600HRESULT Com.IDataObject.Interface.EnumDAdvise(Com.IEnumSTATDATA** ppenumAdvise) => 603HRESULT Com.IDataObject.Interface.EnumFormatEtc(uint dwDirection, Com.IEnumFORMATETC** ppenumFormatEtc) => 606HRESULT Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) => 609HRESULT Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) => 612HRESULT Com.IDataObject.Interface.QueryGetData(Com.FORMATETC* pformatetc) => 615HRESULT Com.IDataObject.Interface.GetCanonicalFormatEtc(Com.FORMATETC* pformatectIn, Com.FORMATETC* pformatetcOut) => 618HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) =>
System\Windows\Ole\WpfOleServices.cs (3)
71Com.IDataObject* dataObject, 183static HRESULT IOleServices.OleGetClipboard(Com.IDataObject** dataObject) => 186static HRESULT IOleServices.OleSetClipboard(Com.IDataObject* dataObject) =>
System.Private.Windows.Core (187)
System\Private\Windows\Ole\ClipboardCore.cs (4)
96using var iDataObject = ComHelpers.GetComScope<IDataObject>(dataObject); 135out ComScope<IDataObject> proxyDataObject, 196out ComScope<IDataObject> proxyDataObject, 221out ComScope<IDataObject> proxyDataObject,
System\Private\Windows\Ole\Composition.cs (7)
13/// Contains the logic to move between <see cref="IDataObjectInternal"/>, <see cref="IDataObject.Interface"/>, 17: IDataObjectInternal, IDataObject.Interface, ComTypes.IDataObject 37private readonly IDataObject.Interface _nativeDataObject; 40private Composition(IDataObjectInternal managedDataObject, IDataObject.Interface nativeDataObject, ComTypes.IDataObject runtimeDataObject) 76NativeToRuntimeAdapter nativeToRuntime = new(ComHelpers.GetComPointer<IDataObject>(winFormsToNative)); 80internal static Composition<TOleServices, TNrbfSerializer, TDataFormat> Create(IDataObject* nativeDataObject) 95NativeToManagedAdapter nativeToWinForms = new(ComHelpers.GetComPointer<IDataObject>(runtimeToNative));
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (4)
17/// Maps <see cref="IDataObject"/> to <see cref="IDataObject.Interface"/>. 19private sealed unsafe class ManagedToNativeAdapter : IDataObject.Interface, IManagedWrapper<IDataObject>
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (8)
17/// Maps native pointer <see cref="Com.IDataObject"/> to <see cref="IDataObject"/>. 19private sealed unsafe class NativeToManagedAdapter : IDataObjectInternal, Com.IDataObject.Interface 21private readonly AgileComPointer<Com.IDataObject> _nativeDataObject; 23public NativeToManagedAdapter(Com.IDataObject* dataObject) 231/// Extracts a managed object from <see cref="Com.IDataObject"/> of the specified format. 250Com.IDataObject* dataObject, 285Com.IDataObject* dataObject, 346Com.IDataObject* dataObject,
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (3)
14/// Maps native pointer <see cref="Com.IDataObject"/> to the .NET Runtime <see cref="IDataObject"/>. 18private readonly AgileComPointer<Com.IDataObject> _nativeDataObject; 20public NativeToRuntimeAdapter(Com.IDataObject* dataObject)
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (12)
12/// Maps the runtime <see cref="IDataObject"/> to the native <see cref="Com.IDataObject.Interface"/>. 14private sealed class RuntimeToNativeAdapter : Com.IDataObject.Interface, IDataObject, Com.IManagedWrapper<Com.IDataObject> 33HRESULT Com.IDataObject.Interface.DAdvise(Com.FORMATETC* pformatetc, uint advf, Com.IAdviseSink* pAdvSink, uint* pdwConnection) 39HRESULT Com.IDataObject.Interface.DUnadvise(uint dwConnection) 53HRESULT Com.IDataObject.Interface.EnumDAdvise(Com.IEnumSTATDATA** ppenumAdvise) 72HRESULT Com.IDataObject.Interface.EnumFormatEtc(uint dwDirection, Com.IEnumFORMATETC** ppenumFormatEtc) 84HRESULT Com.IDataObject.Interface.GetCanonicalFormatEtc(Com.FORMATETC* pformatectIn, Com.FORMATETC* pformatetcOut) => 87HRESULT Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) 106HRESULT Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) 127HRESULT Com.IDataObject.Interface.QueryGetData(Com.FORMATETC* pformatetc) => (HRESULT)QueryGetData(ref *(FORMATETC*)pformatetc); 129HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease)
System\Private\Windows\Ole\DragDropHelper.cs (4)
67using var dataObjectScope = ComHelpers.GetComScope<IDataObject>(dataObject); 108if (!TryGetDragDropHelper<IDropTargetHelper>(dropTargetHelper) || e.DataObject is not IDataObject.Interface dataObject) 114using var dataObjectScope = ComHelpers.GetComScope<IDataObject>(dataObject); 289using var dataObjectScope = ComHelpers.GetComScope<IDataObject>(dataObject);
System\Private\Windows\Ole\IComVisibleDataObject.cs (2)
11internal interface IComVisibleDataObject : IDataObject.Interface, IManagedWrapper<IDataObject>, IDataObjectInternal
System\Private\Windows\Ole\IDataObjectInternal.cs (1)
165static abstract TDataObject Create(IDataObject* dataObject);
System\Private\Windows\Ole\IOleServices.cs (6)
29/// <inheritdoc cref="IDataObject.GetDataHere(FORMATETC*, STGMEDIUM*)"/> 44IDataObject* dataObject, 78/// <inheritdoc cref="PInvokeCore.OleGetClipboard(IDataObject**)"/>/> 79static abstract HRESULT OleGetClipboard(IDataObject** dataObject); 81/// <inheritdoc cref="PInvokeCore.OleSetClipboard(IDataObject*)"/> 82static abstract HRESULT OleSetClipboard(IDataObject* dataObject);
Windows.Win32.IDataObject.g.cs (47)
26 :IVTable<IDataObject,IDataObject.Vtbl>,IComIID { 42 return ((delegate *unmanaged [Stdcall]<IDataObject*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IDataObject*)Unsafe.AsPointer(ref this), riid, ppvObject); 47 return ((delegate *unmanaged [Stdcall]<IDataObject*,uint>)lpVtbl[1])((IDataObject*)Unsafe.AsPointer(ref this)); 52 return ((delegate *unmanaged [Stdcall]<IDataObject*,uint>)lpVtbl[2])((IDataObject*)Unsafe.AsPointer(ref this)); 71 private static winmdroot.Foundation.HRESULT GetData(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetcIn, winmdroot.System.Com.STGMEDIUM* pmedium) 101 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDataObject*)Unsafe.AsPointer(ref this), pformatetcIn, pmedium); 120 private static winmdroot.Foundation.HRESULT GetDataHere(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium) 150 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDataObject*)Unsafe.AsPointer(ref this), pformatetc, pmedium); 166 private static winmdroot.Foundation.HRESULT QueryGetData(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetc) 192 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IDataObject*)Unsafe.AsPointer(ref this), pformatetc); 211 private static winmdroot.Foundation.HRESULT GetCanonicalFormatEtc(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatectIn, winmdroot.System.Com.FORMATETC* pformatetcOut) 241 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.FORMATETC* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDataObject*)Unsafe.AsPointer(ref this), pformatectIn, pformatetcOut); 260 private static winmdroot.Foundation.HRESULT SetData(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetc, winmdroot.System.Com.STGMEDIUM* pmedium, winmdroot.Foundation.BOOL fRelease) 291 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IDataObject*)Unsafe.AsPointer(ref this), pformatetc, pmedium, fRelease); 297 private static winmdroot.Foundation.HRESULT EnumFormatEtc(IDataObject* pThis, uint dwDirection, winmdroot.System.Com.IEnumFORMATETC** ppenumFormatEtc) 331 return ((delegate *unmanaged [Stdcall]<IDataObject*,uint ,winmdroot.System.Com.IEnumFORMATETC** ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IDataObject*)Unsafe.AsPointer(ref this), dwDirection, ppenumFormatEtc); 350 private static winmdroot.Foundation.HRESULT DAdvise(IDataObject* pThis, winmdroot.System.Com.FORMATETC* pformatetc, uint advf, winmdroot.System.Com.IAdviseSink* pAdvSink, uint* pdwConnection) 388 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,uint ,winmdroot.System.Com.IAdviseSink* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IDataObject*)Unsafe.AsPointer(ref this), pformatetc, advf, pAdvSink, pdwConnection); 394 private static winmdroot.Foundation.HRESULT DUnadvise(IDataObject* pThis, uint dwConnection) 423 return ((delegate *unmanaged [Stdcall]<IDataObject*,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IDataObject*)Unsafe.AsPointer(ref this), dwConnection); 429 private static winmdroot.Foundation.HRESULT EnumDAdvise(IDataObject* pThis, winmdroot.System.Com.IEnumSTATDATA** ppenumAdvise) 458 return ((delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.IEnumSTATDATA** ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IDataObject*)Unsafe.AsPointer(ref this), ppenumAdvise); 482 internal delegate *unmanaged [Stdcall]<IDataObject*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; 484 internal delegate *unmanaged [Stdcall]<IDataObject*,uint> AddRef_2; 486 internal delegate *unmanaged [Stdcall]<IDataObject*,uint> Release_3; 488 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT> GetData_4; 490 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.HRESULT> GetDataHere_5; 492 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.Foundation.HRESULT> QueryGetData_6; 494 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.FORMATETC* ,winmdroot.Foundation.HRESULT> GetCanonicalFormatEtc_7; 496 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,winmdroot.System.Com.STGMEDIUM* ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> SetData_8; 498 internal delegate *unmanaged [Stdcall]<IDataObject*,uint ,winmdroot.System.Com.IEnumFORMATETC** ,winmdroot.Foundation.HRESULT> EnumFormatEtc_9; 500 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.FORMATETC* ,uint ,winmdroot.System.Com.IAdviseSink* ,uint* ,winmdroot.Foundation.HRESULT> DAdvise_10; 502 internal delegate *unmanaged [Stdcall]<IDataObject*,uint ,winmdroot.Foundation.HRESULT> DUnadvise_11; 504 internal delegate *unmanaged [Stdcall]<IDataObject*,winmdroot.System.Com.IEnumSTATDATA** ,winmdroot.Foundation.HRESULT> EnumDAdvise_12;
Windows.Win32.IDragSourceHelper.g.cs (14)
55 /// <inheritdoc cref="InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE*, winmdroot.System.Com.IDataObject*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(in winmdroot.UI.Shell.SHDRAGIMAGE pshdi, winmdroot.System.Com.IDataObject* pDataObject) 68 private static winmdroot.Foundation.HRESULT InitializeFromBitmap(IDragSourceHelper* pThis, winmdroot.UI.Shell.SHDRAGIMAGE* pshdi, winmdroot.System.Com.IDataObject* pDataObject) 98 public unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE* pshdi, winmdroot.System.Com.IDataObject* pDataObject) 100 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.UI.Shell.SHDRAGIMAGE* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDragSourceHelper*)Unsafe.AsPointer(ref this), pshdi, pDataObject); 103 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 104 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 114 private static winmdroot.Foundation.HRESULT InitializeFromWindow(IDragSourceHelper* pThis, winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 148 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 150 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 180 internal delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.UI.Shell.SHDRAGIMAGE* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromBitmap_4; 182 internal delegate *unmanaged [Stdcall]<IDragSourceHelper*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 210 unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE* pshdi, winmdroot.System.Com.IDataObject* pDataObject); 213 unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
Windows.Win32.IDragSourceHelper2.g.cs (14)
55 /// <inheritdoc cref="InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE*, winmdroot.System.Com.IDataObject*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(in winmdroot.UI.Shell.SHDRAGIMAGE pshdi, winmdroot.System.Com.IDataObject* pDataObject) 68 private static winmdroot.Foundation.HRESULT InitializeFromBitmap(IDragSourceHelper2* pThis, winmdroot.UI.Shell.SHDRAGIMAGE* pshdi, winmdroot.System.Com.IDataObject* pDataObject) 85 public unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE* pshdi, winmdroot.System.Com.IDataObject* pDataObject) 87 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.UI.Shell.SHDRAGIMAGE* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDragSourceHelper2*)Unsafe.AsPointer(ref this), pshdi, pDataObject); 90 /// <inheritdoc cref="InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 91 internal unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject) 101 private static winmdroot.Foundation.HRESULT InitializeFromWindow(IDragSourceHelper2* pThis, winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 118 public unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject) 120 return ((delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IDragSourceHelper2*)Unsafe.AsPointer(ref this), hwnd, ppt, pDataObject); 186 internal delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.UI.Shell.SHDRAGIMAGE* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromBitmap_4; 188 internal delegate *unmanaged [Stdcall]<IDragSourceHelper2*,winmdroot.Foundation.HWND ,global::System.Drawing.Point* ,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.HRESULT> InitializeFromWindow_5; 219 unsafe new winmdroot.Foundation.HRESULT InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE* pshdi, winmdroot.System.Com.IDataObject* pDataObject); 222 unsafe new winmdroot.Foundation.HRESULT InitializeFromWindow(winmdroot.Foundation.HWND hwnd, [Optional] global::System.Drawing.Point* ppt, winmdroot.System.Com.IDataObject* pDataObject);
Windows.Win32.IDropTarget.g.cs (14)
55 /// <inheritdoc cref="DragEnter(winmdroot.System.Com.IDataObject*, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS, winmdroot.Foundation.POINTL, winmdroot.System.Ole.DROPEFFECT*)"/> 56 internal unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, ref winmdroot.System.Ole.DROPEFFECT pdwEffect) 68 private static winmdroot.Foundation.HRESULT DragEnter(IDropTarget* pThis, winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, winmdroot.System.Ole.DROPEFFECT* pdwEffect) 99 public unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, winmdroot.System.Ole.DROPEFFECT* pdwEffect) 101 return ((delegate *unmanaged [Stdcall]<IDropTarget*,winmdroot.System.Com.IDataObject* ,winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS ,winmdroot.Foundation.POINTL ,winmdroot.System.Ole.DROPEFFECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropTarget*)Unsafe.AsPointer(ref this), pDataObj, grfKeyState, pt, pdwEffect); 187 /// <inheritdoc cref="Drop(winmdroot.System.Com.IDataObject*, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS, winmdroot.Foundation.POINTL, winmdroot.System.Ole.DROPEFFECT*)"/> 188 internal unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, ref winmdroot.System.Ole.DROPEFFECT pdwEffect) 200 private static winmdroot.Foundation.HRESULT Drop(IDropTarget* pThis, winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, winmdroot.System.Ole.DROPEFFECT* pdwEffect) 231 public unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, winmdroot.System.Ole.DROPEFFECT* pdwEffect) 233 return ((delegate *unmanaged [Stdcall]<IDropTarget*,winmdroot.System.Com.IDataObject* ,winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS ,winmdroot.Foundation.POINTL ,winmdroot.System.Ole.DROPEFFECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDropTarget*)Unsafe.AsPointer(ref this), pDataObj, grfKeyState, pt, pdwEffect); 263 internal delegate *unmanaged [Stdcall]<IDropTarget*,winmdroot.System.Com.IDataObject* ,winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS ,winmdroot.Foundation.POINTL ,winmdroot.System.Ole.DROPEFFECT* ,winmdroot.Foundation.HRESULT> DragEnter_4; 269 internal delegate *unmanaged [Stdcall]<IDropTarget*,winmdroot.System.Com.IDataObject* ,winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS ,winmdroot.Foundation.POINTL ,winmdroot.System.Ole.DROPEFFECT* ,winmdroot.Foundation.HRESULT> Drop_7; 299 unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, winmdroot.System.Ole.DROPEFFECT* pdwEffect); 308 unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, winmdroot.System.Ole.DROPEFFECT* pdwEffect);
Windows.Win32.IDropTargetHelper.g.cs (14)
55 /// <inheritdoc cref="DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 56 internal unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 68 private static winmdroot.Foundation.HRESULT DragEnter(IDropTargetHelper* pThis, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 106 public unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 108 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IDropTargetHelper*)Unsafe.AsPointer(ref this), hwndTarget, pDataObject, ppt, dwEffect); 189 /// <inheritdoc cref="Drop(winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 190 internal unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 202 private static winmdroot.Foundation.HRESULT Drop(IDropTargetHelper* pThis, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 236 public unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 238 return ((delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IDropTargetHelper*)Unsafe.AsPointer(ref this), pDataObject, ppt, dwEffect); 302 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.Foundation.HWND ,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> DragEnter_4; 308 internal delegate *unmanaged [Stdcall]<IDropTargetHelper*,winmdroot.System.Com.IDataObject* ,global::System.Drawing.Point* ,winmdroot.System.Ole.DROPEFFECT ,winmdroot.Foundation.HRESULT> Drop_7; 341 unsafe winmdroot.Foundation.HRESULT DragEnter(winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect); 350 unsafe winmdroot.Foundation.HRESULT Drop(winmdroot.System.Com.IDataObject* pDataObject, global::System.Drawing.Point* ppt, winmdroot.System.Ole.DROPEFFECT dwEffect);
Windows.Win32.PInvokeCore.OLE32.dll.g.cs (5)
73 /// <inheritdoc cref="DoDragDrop(winmdroot.System.Com.IDataObject*, winmdroot.System.Ole.IDropSource*, winmdroot.System.Ole.DROPEFFECT, winmdroot.System.Ole.DROPEFFECT*)"/> 75 internal static unsafe winmdroot.Foundation.HRESULT DoDragDrop(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.Ole.IDropSource* pDropSource, winmdroot.System.Ole.DROPEFFECT dwOKEffects, out winmdroot.System.Ole.DROPEFFECT pdwEffect) 101 internal static extern unsafe winmdroot.Foundation.HRESULT DoDragDrop(winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.Ole.IDropSource* pDropSource, winmdroot.System.Ole.DROPEFFECT dwOKEffects, winmdroot.System.Ole.DROPEFFECT* pdwEffect); 140 internal static extern unsafe winmdroot.Foundation.HRESULT OleGetClipboard(winmdroot.System.Com.IDataObject** ppDataObj); 179 internal static extern unsafe winmdroot.Foundation.HRESULT OleSetClipboard(winmdroot.System.Com.IDataObject* pDataObj);
Windows.Win32.System_Com_IDataObject_Extensions.g.cs (12)
23 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.GetData(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT GetData(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetcIn, out winmdroot.System.Com.STGMEDIUM pmedium) 36 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.GetDataHere(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*)"/> 37 internal static unsafe winmdroot.Foundation.HRESULT GetDataHere(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetc, ref winmdroot.System.Com.STGMEDIUM pmedium) 49 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.QueryGetData(winmdroot.System.Com.FORMATETC*)"/> 50 internal static unsafe winmdroot.Foundation.HRESULT QueryGetData(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetc) 59 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.GetCanonicalFormatEtc(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.FORMATETC*)"/> 60 internal static unsafe winmdroot.Foundation.HRESULT GetCanonicalFormatEtc(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatectIn, out winmdroot.System.Com.FORMATETC pformatetcOut) 72 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.SetData(winmdroot.System.Com.FORMATETC*, winmdroot.System.Com.STGMEDIUM*, winmdroot.Foundation.BOOL)"/> 73 internal static unsafe winmdroot.Foundation.HRESULT SetData(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetc, in winmdroot.System.Com.STGMEDIUM pmedium, winmdroot.Foundation.BOOL fRelease) 85 /// <inheritdoc cref="winmdroot.System.Com.IDataObject.Interface.DAdvise(winmdroot.System.Com.FORMATETC*, uint, winmdroot.System.Com.IAdviseSink*, uint*)"/> 86 internal static unsafe winmdroot.Foundation.HRESULT DAdvise(this winmdroot.System.Com.IDataObject.Interface @this, in winmdroot.System.Com.FORMATETC pformatetc, uint advf, winmdroot.System.Com.IAdviseSink* pAdvSink, out uint pdwConnection)
Windows.Win32.System_Ole_IDropTarget_Extensions.g.cs (4)
23 /// <inheritdoc cref="winmdroot.System.Ole.IDropTarget.Interface.DragEnter(winmdroot.System.Com.IDataObject*, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS, winmdroot.Foundation.POINTL, winmdroot.System.Ole.DROPEFFECT*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT DragEnter(this winmdroot.System.Ole.IDropTarget.Interface @this, winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, ref winmdroot.System.Ole.DROPEFFECT pdwEffect) 43 /// <inheritdoc cref="winmdroot.System.Ole.IDropTarget.Interface.Drop(winmdroot.System.Com.IDataObject*, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS, winmdroot.Foundation.POINTL, winmdroot.System.Ole.DROPEFFECT*)"/> 44 internal static unsafe winmdroot.Foundation.HRESULT Drop(this winmdroot.System.Ole.IDropTarget.Interface @this, winmdroot.System.Com.IDataObject* pDataObj, winmdroot.System.SystemServices.MODIFIERKEYS_FLAGS grfKeyState, winmdroot.Foundation.POINTL pt, ref winmdroot.System.Ole.DROPEFFECT pdwEffect)
Windows.Win32.UI_Shell_IDragSourceHelper_Extensions.g.cs (4)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper.Interface.InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE*, winmdroot.System.Com.IDataObject*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(this winmdroot.UI.Shell.IDragSourceHelper.Interface @this, in winmdroot.UI.Shell.SHDRAGIMAGE pshdi, winmdroot.System.Com.IDataObject* pDataObject) 33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject)
Windows.Win32.UI_Shell_IDragSourceHelper2_Extensions.g.cs (4)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper2.Interface.InitializeFromBitmap(winmdroot.UI.Shell.SHDRAGIMAGE*, winmdroot.System.Com.IDataObject*)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromBitmap(this winmdroot.UI.Shell.IDragSourceHelper2.Interface @this, in winmdroot.UI.Shell.SHDRAGIMAGE pshdi, winmdroot.System.Com.IDataObject* pDataObject) 33 /// <inheritdoc cref="winmdroot.UI.Shell.IDragSourceHelper2.Interface.InitializeFromWindow(winmdroot.Foundation.HWND, global::System.Drawing.Point*, winmdroot.System.Com.IDataObject*)"/> 34 internal static unsafe winmdroot.Foundation.HRESULT InitializeFromWindow(this winmdroot.UI.Shell.IDragSourceHelper2.Interface @this, winmdroot.Foundation.HWND hwnd, global::System.Drawing.Point? ppt, winmdroot.System.Com.IDataObject* pDataObject)
Windows.Win32.UI_Shell_IDropTargetHelper_Extensions.g.cs (4)
23 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.DragEnter(winmdroot.Foundation.HWND, winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT DragEnter(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.Foundation.HWND hwndTarget, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect) 43 /// <inheritdoc cref="winmdroot.UI.Shell.IDropTargetHelper.Interface.Drop(winmdroot.System.Com.IDataObject*, global::System.Drawing.Point*, winmdroot.System.Ole.DROPEFFECT)"/> 44 internal static unsafe winmdroot.Foundation.HRESULT Drop(this winmdroot.UI.Shell.IDropTargetHelper.Interface @this, winmdroot.System.Com.IDataObject* pDataObject, in global::System.Drawing.Point ppt, winmdroot.System.Ole.DROPEFFECT dwEffect)
System.Private.Windows.Core.Tests (46)
System\Private\Windows\Ole\ClipboardCoreTests.cs (7)
44static unsafe HRESULT IOleServices.OleGetClipboard(IDataObject** dataObject) => throw new NotImplementedException(); 45static unsafe HRESULT IOleServices.OleSetClipboard(IDataObject* dataObject) => throw new NotImplementedException(); 46static unsafe bool IOleServices.TryGetObjectFromDataObject<T>(IDataObject* dataObject, string requestedFormat, [NotNullWhen(true)] out T data) => throw new NotImplementedException(); 54using ComScope<IDataObject> iDataObject = ComHelpers.GetComScope<IDataObject>(dataObject); 55using AgileComPointer<IDataObject> agileComPointer = new(iDataObject.Value, takeOwnership: false); 56using ComScope<IDataObject> fetched = agileComPointer.GetInterface();
System\Private\Windows\Ole\DataObjectProxy.cs (27)
8using Lifetime = Windows.Win32.System.Com.Lifetime<Windows.Win32.System.Com.IDataObject.Vtbl, System.Private.Windows.Ole.DataObjectProxy>; 15internal unsafe class DataObjectProxy : IDataObject.Interface, IDisposable 18private readonly AgileComPointer<IDataObject> _agileOriginal; 19private readonly IDataObject* _original; 20private readonly AgileComPointer<IDataObject> _agileProxy; 21public IDataObject* Proxy { get; } 23public DataObjectProxy(IDataObject* original) 65private static readonly IDataObject.Vtbl* s_vtable = AllocateVTable(); 67private static unsafe IDataObject.Vtbl* AllocateVTable() 70IDataObject.Vtbl* vtable = (IDataObject.Vtbl*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(CCW), sizeof(IDataObject.Vtbl)); 91public static unsafe IDataObject* Create(DataObjectProxy @object) => 92(IDataObject*)Lifetime.Allocate(@object, s_vtable); 95private static unsafe HRESULT QueryInterface(IDataObject* @this, Guid* iid, void** ppObject) 102if (iid->Equals(IDataObject.IID_Guid) || iid->Equals(IUnknown.IID_Guid)) 122private static unsafe uint AddRef(IDataObject* @this) => Lifetime.AddRef(@this); 125private static unsafe uint Release(IDataObject* @this) => Lifetime.Release(@this); 128private static unsafe HRESULT GetData(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium) => 132private static unsafe HRESULT GetDataHere(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium) => 136private static unsafe HRESULT QueryGetData(IDataObject* @this, FORMATETC* pFormatetc) => 140private static unsafe HRESULT GetCanonicalFormatEtc(IDataObject* @this, FORMATETC* pFormatetcIn, FORMATETC* pFormatetcOut) => 144private static unsafe HRESULT SetData(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium, BOOL fRelease) => 148private static unsafe HRESULT EnumFormatEtc(IDataObject* @this, uint dwDirection, IEnumFORMATETC** ppEnumFormatEtc) => 152private static unsafe HRESULT DAdvise(IDataObject* @this, FORMATETC* pFormatetc, uint advf, IAdviseSink* pAdvSink, uint* pdwConnection) => 156private static unsafe HRESULT DUnadvise(IDataObject* @this, uint dwConnection) => 160private static unsafe HRESULT EnumDAdvise(IDataObject* @this, IEnumSTATDATA** ppEnumAdvise) =>
System\Private\Windows\Ole\MockOleServices.cs (3)
25IDataObject* dataObject, 39static unsafe HRESULT IOleServices.OleGetClipboard(IDataObject** dataObject) 57static unsafe HRESULT IOleServices.OleSetClipboard(IDataObject* dataObject)
System\Private\Windows\Ole\NativeDataObjectMock.cs (2)
9internal abstract unsafe class NativeDataObjectMock : DisposableBase, IDataObject.Interface, IManagedWrapper<IDataObject>
System\Private\Windows\Ole\NativeToManagedAdapterTests.cs (5)
38var composition = Composition.Create(ComHelpers.GetComPointer<IDataObject>(dataObject)); 55var composition = Composition.Create(ComHelpers.GetComPointer<IDataObject>(dataObject)); 73var composition = Composition.Create(ComHelpers.GetComPointer<IDataObject>(dataObject)); 91var composition = Composition.Create(ComHelpers.GetComPointer<IDataObject>(dataObject)); 107var composition = Composition.Create(ComHelpers.GetComPointer<IDataObject>(dataObject));
System\Private\Windows\Ole\TestDataObject.cs (2)
22static TestDataObject<TOleServices> IDataObjectInternal<TestDataObject<TOleServices>, ITestDataObject>.Create(IDataObject* dataObject) => 32internal TestDataObject(IDataObject* data) =>
System.Windows.Forms (32)
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (5)
9using ComIDataObject = Windows.Win32.System.Com.IDataObject; 189/// <inheritdoc cref="IOleObject.InitFromData(ComIDataObject*, BOOL, uint)"/> 190HRESULT IOleObject.Interface.InitFromData(ComIDataObject* pDataObject, BOOL fCreation, uint dwReserved) => 193/// <inheritdoc cref="IOleObject.GetClipboardData(uint, ComIDataObject**)"/> 194HRESULT IOleObject.Interface.GetClipboardData(uint dwReserved, ComIDataObject** ppDataObject)
System\Windows\Forms\Control.cs (1)
4971using var dataScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (3)
67/// <inheritdoc cref="IRichEditOleCallback.QueryAcceptData(Com.IDataObject*, ushort*, RECO_FLAGS, BOOL, HGLOBAL)"/> 68public HRESULT QueryAcceptData(Com.IDataObject* lpdataobj, ushort* lpcfFormat, RECO_FLAGS reco, BOOL fReally, HGLOBAL hMetaPict) 190public HRESULT GetClipboardData(CHARRANGE* lpchrg, uint reco, Com.IDataObject** lplpdataobj) => HRESULT.E_NOTIMPL;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2199using var dataObjectScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject);
System\Windows\Forms\OLE\DataObject.cs (14)
26Com.IDataObject.Interface, 28Com.IManagedWrapper<Com.IDataObject>, 34static DataObject IDataObjectInternal<DataObject, IDataObject>.Create(Com.IDataObject* dataObject) => new(dataObject); 41/// Initializes a new instance of the <see cref="DataObject"/> class, with the raw <see cref="Com.IDataObject"/> 50internal DataObject(Com.IDataObject* data) => _innerData = Composition.Create(data); 320HRESULT Com.IDataObject.Interface.DAdvise(Com.FORMATETC* pformatetc, uint advf, Com.IAdviseSink* pAdvSink, uint* pdwConnection) => 323HRESULT Com.IDataObject.Interface.DUnadvise(uint dwConnection) => 326HRESULT Com.IDataObject.Interface.EnumDAdvise(Com.IEnumSTATDATA** ppenumAdvise) => 329HRESULT Com.IDataObject.Interface.EnumFormatEtc(uint dwDirection, Com.IEnumFORMATETC** ppenumFormatEtc) => 332HRESULT Com.IDataObject.Interface.GetData(Com.FORMATETC* pformatetcIn, Com.STGMEDIUM* pmedium) => 335HRESULT Com.IDataObject.Interface.GetDataHere(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium) => 338HRESULT Com.IDataObject.Interface.QueryGetData(Com.FORMATETC* pformatetc) => 341HRESULT Com.IDataObject.Interface.GetCanonicalFormatEtc(Com.FORMATETC* pformatectIn, Com.FORMATETC* pformatetcOut) => 344HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) =>
System\Windows\Forms\OLE\DropTarget.cs (4)
48private static DataObject? CreateManagedDataObjectForOutgoingDropData(Com.IDataObject* nativeDataObject) 72private DragEventArgs? CreateDragEventArgs(Com.IDataObject* pDataObj, MODIFIERKEYS_FLAGS grfKeyState, POINTL pt, DROPEFFECT pdwEffect) 106HRESULT OleIDropTarget.Interface.DragEnter(Com.IDataObject* pDataObj, MODIFIERKEYS_FLAGS grfKeyState, POINTL pt, DROPEFFECT* pdwEffect) 175HRESULT OleIDropTarget.Interface.Drop(Com.IDataObject* pDataObj, MODIFIERKEYS_FLAGS grfKeyState, POINTL pt, DROPEFFECT* pdwEffect)
System\Windows\Forms\OLE\WinFormsOleServices.cs (4)
61Com.IDataObject* dataObject, 76static unsafe bool TryGetBitmapData(Com.IDataObject* dataObject, [NotNullWhen(true)] out Bitmap? data) 150static unsafe HRESULT IOleServices.OleGetClipboard(Com.IDataObject** dataObject) => 153static unsafe HRESULT IOleServices.OleSetClipboard(Com.IDataObject* dataObject) =>
System.Windows.Forms.Design (2)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (2)
93public HRESULT QueryAcceptData(Com.IDataObject* lpdataobj, ushort* lpcfFormat, RECO_FLAGS reco, BOOL fReally, HGLOBAL hMetaPict) 128public HRESULT GetClipboardData(CHARRANGE* lpchrg, uint reco, Com.IDataObject** lplpdataobj) => HRESULT.E_NOTIMPL;
System.Windows.Forms.Primitives (42)
Windows.Win32.IOleObject.g.cs (10)
282 private static winmdroot.Foundation.HRESULT InitFromData(IOleObject* pThis, winmdroot.System.Com.IDataObject* pDataObject, winmdroot.Foundation.BOOL fCreation, uint dwReserved) 311 public unsafe void InitFromData(winmdroot.System.Com.IDataObject* pDataObject, winmdroot.Foundation.BOOL fCreation, uint dwReserved) 313 ((delegate *unmanaged [Stdcall]<IOleObject*,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.BOOL ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IOleObject*)Unsafe.AsPointer(ref this), pDataObject, fCreation, dwReserved).ThrowOnFailure(); 319 private static winmdroot.Foundation.HRESULT GetClipboardData(IOleObject* pThis, uint dwReserved, winmdroot.System.Com.IDataObject** ppDataObject) 347 public unsafe void GetClipboardData(uint dwReserved, winmdroot.System.Com.IDataObject** ppDataObject) 349 ((delegate *unmanaged [Stdcall]<IOleObject*,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IOleObject*)Unsafe.AsPointer(ref this), dwReserved, ppDataObject).ThrowOnFailure(); 919 internal delegate *unmanaged [Stdcall]<IOleObject*,winmdroot.System.Com.IDataObject* ,winmdroot.Foundation.BOOL ,uint ,winmdroot.Foundation.HRESULT> InitFromData_10; 921 internal delegate *unmanaged [Stdcall]<IOleObject*,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT> GetClipboardData_11; 1012 unsafe winmdroot.Foundation.HRESULT InitFromData(winmdroot.System.Com.IDataObject* pDataObject, winmdroot.Foundation.BOOL fCreation, uint dwReserved); 1015 unsafe winmdroot.Foundation.HRESULT GetClipboardData(uint dwReserved, winmdroot.System.Com.IDataObject** ppDataObject);
Windows.Win32.IRichEditOle.g.cs (12)
628 /// <inheritdoc cref="GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE*, uint, winmdroot.System.Com.IDataObject**)"/> 629 internal unsafe void GetClipboardData(ref winmdroot.UI.Controls.RichEdit.CHARRANGE lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj) 640 private static winmdroot.Foundation.HRESULT GetClipboardData(IRichEditOle* pThis, winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj) 677 public unsafe void GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj) 679 ((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.UI.Controls.RichEdit.CHARRANGE* ,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IRichEditOle*)Unsafe.AsPointer(ref this), lpchrg, reco, lplpdataobj).ThrowOnFailure(); 685 private static winmdroot.Foundation.HRESULT ImportDataObject(IRichEditOle* pThis, winmdroot.System.Com.IDataObject* lpdataobj, ushort cf, winmdroot.Foundation.HGLOBAL hMetaPict) 722 public unsafe void ImportDataObject(winmdroot.System.Com.IDataObject* lpdataobj, ushort cf, winmdroot.Foundation.HGLOBAL hMetaPict) 724 ((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.System.Com.IDataObject* ,ushort ,winmdroot.Foundation.HGLOBAL ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IRichEditOle*)Unsafe.AsPointer(ref this), lpdataobj, cf, hMetaPict).ThrowOnFailure(); 782 internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.UI.Controls.RichEdit.CHARRANGE* ,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT> GetClipboardData_18; 784 internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.System.Com.IDataObject* ,ushort ,winmdroot.Foundation.HGLOBAL ,winmdroot.Foundation.HRESULT> ImportDataObject_19; 868 unsafe winmdroot.Foundation.HRESULT GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj); 871 unsafe winmdroot.Foundation.HRESULT ImportDataObject(winmdroot.System.Com.IDataObject* lpdataobj, ushort cf, winmdroot.Foundation.HGLOBAL hMetaPict);
Windows.Win32.IRichEditOleCallback.g.cs (14)
274 /// <inheritdoc cref="QueryAcceptData(winmdroot.System.Com.IDataObject*, ushort*, winmdroot.System.SystemServices.RECO_FLAGS, winmdroot.Foundation.BOOL, winmdroot.Foundation.HGLOBAL)"/> 275 internal unsafe winmdroot.Foundation.HRESULT QueryAcceptData(winmdroot.System.Com.IDataObject* lpdataobj, ref ushort lpcfFormat, winmdroot.System.SystemServices.RECO_FLAGS reco, winmdroot.Foundation.BOOL fReally, winmdroot.Foundation.HGLOBAL hMetaPict) 287 private static winmdroot.Foundation.HRESULT QueryAcceptData(IRichEditOleCallback* pThis, winmdroot.System.Com.IDataObject* lpdataobj, ushort* lpcfFormat, winmdroot.System.SystemServices.RECO_FLAGS reco, winmdroot.Foundation.BOOL fReally, winmdroot.Foundation.HGLOBAL hMetaPict) 330 public unsafe winmdroot.Foundation.HRESULT QueryAcceptData(winmdroot.System.Com.IDataObject* lpdataobj, ushort* lpcfFormat, winmdroot.System.SystemServices.RECO_FLAGS reco, winmdroot.Foundation.BOOL fReally, winmdroot.Foundation.HGLOBAL hMetaPict) 332 return ((delegate *unmanaged [Stdcall]<IRichEditOleCallback*,winmdroot.System.Com.IDataObject* ,ushort* ,winmdroot.System.SystemServices.RECO_FLAGS ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HGLOBAL ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IRichEditOleCallback*)Unsafe.AsPointer(ref this), lpdataobj, lpcfFormat, reco, fReally, hMetaPict); 372 /// <inheritdoc cref="GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE*, uint, winmdroot.System.Com.IDataObject**)"/> 373 internal unsafe winmdroot.Foundation.HRESULT GetClipboardData(ref winmdroot.UI.Controls.RichEdit.CHARRANGE lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj) 385 private static winmdroot.Foundation.HRESULT GetClipboardData(IRichEditOleCallback* pThis, winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj) 423 public unsafe winmdroot.Foundation.HRESULT GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj) 425 return ((delegate *unmanaged [Stdcall]<IRichEditOleCallback*,winmdroot.UI.Controls.RichEdit.CHARRANGE* ,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IRichEditOleCallback*)Unsafe.AsPointer(ref this), lpchrg, reco, lplpdataobj); 576 internal delegate *unmanaged [Stdcall]<IRichEditOleCallback*,winmdroot.System.Com.IDataObject* ,ushort* ,winmdroot.System.SystemServices.RECO_FLAGS ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HGLOBAL ,winmdroot.Foundation.HRESULT> QueryAcceptData_9; 580 internal delegate *unmanaged [Stdcall]<IRichEditOleCallback*,winmdroot.UI.Controls.RichEdit.CHARRANGE* ,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT> GetClipboardData_11; 635 unsafe winmdroot.Foundation.HRESULT QueryAcceptData(winmdroot.System.Com.IDataObject* lpdataobj, ushort* lpcfFormat, winmdroot.System.SystemServices.RECO_FLAGS reco, winmdroot.Foundation.BOOL fReally, winmdroot.Foundation.HGLOBAL hMetaPict); 641 unsafe winmdroot.Foundation.HRESULT GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj);
Windows.Win32.UI_Controls_RichEdit_IRichEditOle_Extensions.g.cs (2)
82 /// <inheritdoc cref="winmdroot.UI.Controls.RichEdit.IRichEditOle.Interface.GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE*, uint, winmdroot.System.Com.IDataObject**)"/> 83 internal static unsafe winmdroot.Foundation.HRESULT GetClipboardData(this winmdroot.UI.Controls.RichEdit.IRichEditOle.Interface @this, ref winmdroot.UI.Controls.RichEdit.CHARRANGE lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj)
Windows.Win32.UI_Controls_RichEdit_IRichEditOleCallback_Extensions.g.cs (4)
43 /// <inheritdoc cref="winmdroot.UI.Controls.RichEdit.IRichEditOleCallback.Interface.QueryAcceptData(winmdroot.System.Com.IDataObject*, ushort*, winmdroot.System.SystemServices.RECO_FLAGS, winmdroot.Foundation.BOOL, winmdroot.Foundation.HGLOBAL)"/> 44 internal static unsafe winmdroot.Foundation.HRESULT QueryAcceptData(this winmdroot.UI.Controls.RichEdit.IRichEditOleCallback.Interface @this, winmdroot.System.Com.IDataObject* lpdataobj, ref ushort lpcfFormat, winmdroot.System.SystemServices.RECO_FLAGS reco, winmdroot.Foundation.BOOL fReally, winmdroot.Foundation.HGLOBAL hMetaPict) 53 /// <inheritdoc cref="winmdroot.UI.Controls.RichEdit.IRichEditOleCallback.Interface.GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE*, uint, winmdroot.System.Com.IDataObject**)"/> 54 internal static unsafe winmdroot.Foundation.HRESULT GetClipboardData(this winmdroot.UI.Controls.RichEdit.IRichEditOleCallback.Interface @this, ref winmdroot.UI.Controls.RichEdit.CHARRANGE lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj)
System.Windows.Forms.Primitives.TestUtilities (2)
Windows\Win32\System\Ole\DropTargetMock.cs (2)
11public virtual HRESULT DragEnter(IDataObject* pDataObj, MODIFIERKEYS_FLAGS grfKeyState, POINTL pt, DROPEFFECT* pdwEffect) 26public virtual HRESULT Drop(IDataObject* pDataObj, MODIFIERKEYS_FLAGS grfKeyState, POINTL pt, DROPEFFECT* pdwEffect)
System.Windows.Forms.Tests (25)
System\Windows\Forms\ClipboardTests.cs (4)
465using var dataScope = ComHelpers.GetComScope<Com.IDataObject>(data); 468using ComScope<Com.IDataObject> proxy = new(null); 1329using var iDataObject = ComHelpers.GetComScope<Com.IDataObject>(dataObject); 1337using ComScope<Com.IDataObject> receivedIDataObject = default;
System\Windows\Forms\DataObjectComTests.cs (3)
14private delegate IDataObject CreateManagedDataObjectForOutgoingDropData(Com.IDataObject* dataObject); 29var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 47var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
System\Windows\Forms\DataObjectTests.cs (7)
2798using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2829using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2848using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2865using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2881using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2896using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 2917using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (11)
23using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 48using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 67using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 82using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 154using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 168using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 185using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 201using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 216using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 424using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native); 443using var comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);