IDropTarget.cs 1.2 KB

1234567891011121314151617181920212223
  1. using System;
  2. using System.Runtime.InteropServices;
  3. using System.Runtime.InteropServices.ComTypes;
  4. namespace LYFZ.OtherExpansion.Win32.Com
  5. {
  6. [ComVisible(true), Guid("00000122-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  7. [ComImport]
  8. public interface IDropTarget
  9. {
  10. [PreserveSig]
  11. [return: MarshalAs(UnmanagedType.I4)]
  12. int DragEnter([MarshalAs(UnmanagedType.Interface)] [In] IDataObject pDataObj, [MarshalAs(UnmanagedType.U4)] [In] uint grfKeyState, [MarshalAs(UnmanagedType.Struct)] [In] tagPOINT pt, [MarshalAs(UnmanagedType.U4)] [In] [Out] ref uint pdwEffect);
  13. [PreserveSig]
  14. [return: MarshalAs(UnmanagedType.I4)]
  15. int DragOver([MarshalAs(UnmanagedType.U4)] [In] uint grfKeyState, [MarshalAs(UnmanagedType.Struct)] [In] tagPOINT pt, [MarshalAs(UnmanagedType.U4)] [In] [Out] ref uint pdwEffect);
  16. [PreserveSig]
  17. [return: MarshalAs(UnmanagedType.I4)]
  18. int DragLeave();
  19. [PreserveSig]
  20. [return: MarshalAs(UnmanagedType.I4)]
  21. int Drop([MarshalAs(UnmanagedType.Interface)] [In] IDataObject pDataObj, [MarshalAs(UnmanagedType.U4)] [In] uint grfKeyState, [MarshalAs(UnmanagedType.Struct)] [In] tagPOINT pt, [MarshalAs(UnmanagedType.U4)] [In] [Out] ref uint pdwEffect);
  22. }
  23. }