IRichEditOle.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace LYFZ.OtherExpansion.SkinControl
  4. {
  5. [Guid("00020D00-0000-0000-c000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  6. [ComImport]
  7. public interface IRichEditOle
  8. {
  9. [PreserveSig]
  10. [return: MarshalAs(UnmanagedType.I4)]
  11. int GetClientSite(out IOleClientSite site);
  12. [PreserveSig]
  13. [return: MarshalAs(UnmanagedType.I4)]
  14. int GetObjectCount();
  15. [PreserveSig]
  16. [return: MarshalAs(UnmanagedType.I4)]
  17. int GetLinkCount();
  18. [PreserveSig]
  19. [return: MarshalAs(UnmanagedType.I4)]
  20. int GetObject(int iob, [In] [Out] REOBJECT lpreobject, [MarshalAs(UnmanagedType.U4)] GETOBJECTOPTIONS flags);
  21. [PreserveSig]
  22. [return: MarshalAs(UnmanagedType.I4)]
  23. int InsertObject(REOBJECT lpreobject);
  24. [PreserveSig]
  25. [return: MarshalAs(UnmanagedType.I4)]
  26. int ConvertObject(int iob, Guid rclsidNew, string lpstrUserTypeNew);
  27. [PreserveSig]
  28. [return: MarshalAs(UnmanagedType.I4)]
  29. int ActivateAs(Guid rclsid, Guid rclsidAs);
  30. [PreserveSig]
  31. [return: MarshalAs(UnmanagedType.I4)]
  32. int SetHostNames(string lpstrContainerApp, string lpstrContainerObj);
  33. [PreserveSig]
  34. [return: MarshalAs(UnmanagedType.I4)]
  35. int SetLinkAvailable(int iob, bool fAvailable);
  36. [PreserveSig]
  37. [return: MarshalAs(UnmanagedType.I4)]
  38. int SetDvaspect(int iob, uint dvaspect);
  39. [PreserveSig]
  40. [return: MarshalAs(UnmanagedType.I4)]
  41. int HandsOffStorage(int iob);
  42. [PreserveSig]
  43. [return: MarshalAs(UnmanagedType.I4)]
  44. int SaveCompleted(int iob, IStorage lpstg);
  45. [PreserveSig]
  46. [return: MarshalAs(UnmanagedType.I4)]
  47. int InPlaceDeactivate();
  48. [PreserveSig]
  49. [return: MarshalAs(UnmanagedType.I4)]
  50. int ContextSensitiveHelp(bool fEnterMode);
  51. [PreserveSig]
  52. [return: MarshalAs(UnmanagedType.I4)]
  53. int GetClipboardData([In] [Out] ref CHARRANGE lpchrg, [MarshalAs(UnmanagedType.U4)] GETCLIPBOARDDATAFLAGS reco, out IDataObject lplpdataobj);
  54. [PreserveSig]
  55. [return: MarshalAs(UnmanagedType.I4)]
  56. int ImportDataObject(IDataObject lpdataobj, int cf, IntPtr hMetaPict);
  57. }
  58. }