IOleObject.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using System.Drawing;
  3. using System.Runtime.InteropServices;
  4. namespace LYFZ.OtherExpansion.SkinControl
  5. {
  6. [ComVisible(true), Guid("00000112-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  7. [ComImport]
  8. public interface IOleObject
  9. {
  10. [PreserveSig]
  11. [return: MarshalAs(UnmanagedType.I4)]
  12. int SetClientSite([MarshalAs(UnmanagedType.Interface)] [In] IOleClientSite pClientSite);
  13. [PreserveSig]
  14. [return: MarshalAs(UnmanagedType.I4)]
  15. int GetClientSite(out IOleClientSite site);
  16. [PreserveSig]
  17. [return: MarshalAs(UnmanagedType.I4)]
  18. int SetHostNames([MarshalAs(UnmanagedType.LPWStr)] [In] string szContainerApp, [MarshalAs(UnmanagedType.LPWStr)] [In] string szContainerObj);
  19. [PreserveSig]
  20. [return: MarshalAs(UnmanagedType.I4)]
  21. int Close([MarshalAs(UnmanagedType.I4)] [In] int dwSaveOption);
  22. [PreserveSig]
  23. [return: MarshalAs(UnmanagedType.I4)]
  24. int SetMoniker([MarshalAs(UnmanagedType.U4)] [In] int dwWhichMoniker, [MarshalAs(UnmanagedType.Interface)] [In] object pmk);
  25. [PreserveSig]
  26. [return: MarshalAs(UnmanagedType.I4)]
  27. int GetMoniker([MarshalAs(UnmanagedType.U4)] [In] int dwAssign, [MarshalAs(UnmanagedType.U4)] [In] int dwWhichMoniker, out object moniker);
  28. [PreserveSig]
  29. [return: MarshalAs(UnmanagedType.I4)]
  30. int InitFromData([MarshalAs(UnmanagedType.Interface)] [In] IDataObject pDataObject, [MarshalAs(UnmanagedType.I4)] [In] int fCreation, [MarshalAs(UnmanagedType.U4)] [In] int dwReserved);
  31. int GetClipboardData([MarshalAs(UnmanagedType.U4)] [In] int dwReserved, out IDataObject data);
  32. [PreserveSig]
  33. [return: MarshalAs(UnmanagedType.I4)]
  34. int DoVerb([MarshalAs(UnmanagedType.I4)] [In] int iVerb, [In] IntPtr lpmsg, [MarshalAs(UnmanagedType.Interface)] [In] IOleClientSite pActiveSite, [MarshalAs(UnmanagedType.I4)] [In] int lindex, [In] IntPtr hwndParent, [In] COMRECT lprcPosRect);
  35. [PreserveSig]
  36. [return: MarshalAs(UnmanagedType.I4)]
  37. int EnumVerbs(out IEnumOLEVERB e);
  38. [PreserveSig]
  39. [return: MarshalAs(UnmanagedType.I4)]
  40. int Update();
  41. [PreserveSig]
  42. [return: MarshalAs(UnmanagedType.I4)]
  43. int IsUpToDate();
  44. [PreserveSig]
  45. [return: MarshalAs(UnmanagedType.I4)]
  46. int GetUserClassID([In] [Out] ref Guid pClsid);
  47. [PreserveSig]
  48. [return: MarshalAs(UnmanagedType.I4)]
  49. int GetUserType([MarshalAs(UnmanagedType.U4)] [In] int dwFormOfType, [MarshalAs(UnmanagedType.LPWStr)] out string userType);
  50. [PreserveSig]
  51. [return: MarshalAs(UnmanagedType.I4)]
  52. int SetExtent([MarshalAs(UnmanagedType.U4)] [In] int dwDrawAspect, [In] Size pSizel);
  53. [PreserveSig]
  54. [return: MarshalAs(UnmanagedType.I4)]
  55. int GetExtent([MarshalAs(UnmanagedType.U4)] [In] int dwDrawAspect, [Out] Size pSizel);
  56. [PreserveSig]
  57. [return: MarshalAs(UnmanagedType.I4)]
  58. int Advise([MarshalAs(UnmanagedType.Interface)] [In] IAdviseSink pAdvSink, out int cookie);
  59. [PreserveSig]
  60. [return: MarshalAs(UnmanagedType.I4)]
  61. int Unadvise([MarshalAs(UnmanagedType.U4)] [In] int dwConnection);
  62. [PreserveSig]
  63. [return: MarshalAs(UnmanagedType.I4)]
  64. int EnumAdvise(out IEnumSTATDATA e);
  65. [PreserveSig]
  66. [return: MarshalAs(UnmanagedType.I4)]
  67. int GetMiscStatus([MarshalAs(UnmanagedType.U4)] [In] int dwAspect, out int misc);
  68. [PreserveSig]
  69. [return: MarshalAs(UnmanagedType.I4)]
  70. int SetColorScheme([In] tagLOGPALETTE pLogpal);
  71. }
  72. }