IDataObject.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace LYFZ.OtherExpansion.SkinControl
  4. {
  5. [ComVisible(true), Guid("0000010E-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  6. [ComImport]
  7. public interface IDataObject
  8. {
  9. [PreserveSig]
  10. uint GetData(ref FORMATETC a, ref STGMEDIUM b);
  11. [PreserveSig]
  12. uint GetDataHere(ref FORMATETC pFormatetc, out STGMEDIUM pMedium);
  13. [PreserveSig]
  14. uint QueryGetData(ref FORMATETC pFormatetc);
  15. [PreserveSig]
  16. uint GetCanonicalFormatEtc(ref FORMATETC pformatectIn, out FORMATETC pformatetcOut);
  17. [PreserveSig]
  18. uint SetData(ref FORMATETC pFormatectIn, ref STGMEDIUM pmedium, [MarshalAs(UnmanagedType.Bool)] [In] bool fRelease);
  19. [PreserveSig]
  20. uint EnumFormatEtc(uint dwDirection, IEnumFORMATETC penum);
  21. [PreserveSig]
  22. uint DAdvise(ref FORMATETC pFormatetc, int advf, [MarshalAs(UnmanagedType.Interface)] [In] IAdviseSink pAdvSink, out uint pdwConnection);
  23. [PreserveSig]
  24. uint DUnadvise(uint dwConnection);
  25. [PreserveSig]
  26. uint EnumDAdvise([MarshalAs(UnmanagedType.Interface)] out IEnumSTATDATA ppenumAdvise);
  27. }
  28. }