IOleInPlaceUIWindow.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace LYFZ.OtherExpansion.Win32.Com
  4. {
  5. [ComVisible(true), Guid("00000115-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  6. [ComImport]
  7. public interface IOleInPlaceUIWindow
  8. {
  9. [PreserveSig]
  10. [return: MarshalAs(UnmanagedType.I4)]
  11. int GetWindow([In] [Out] ref IntPtr phwnd);
  12. [PreserveSig]
  13. [return: MarshalAs(UnmanagedType.I4)]
  14. int ContextSensitiveHelp([MarshalAs(UnmanagedType.Bool)] [In] bool fEnterMode);
  15. [PreserveSig]
  16. [return: MarshalAs(UnmanagedType.I4)]
  17. int GetBorder([MarshalAs(UnmanagedType.Struct)] [In] [Out] ref tagRECT lprectBorder);
  18. [PreserveSig]
  19. [return: MarshalAs(UnmanagedType.I4)]
  20. int RequestBorderSpace([MarshalAs(UnmanagedType.Struct)] [In] ref tagRECT pborderwidths);
  21. [PreserveSig]
  22. [return: MarshalAs(UnmanagedType.I4)]
  23. int SetBorderSpace([MarshalAs(UnmanagedType.Struct)] [In] ref tagRECT pborderwidths);
  24. [PreserveSig]
  25. [return: MarshalAs(UnmanagedType.I4)]
  26. int SetActiveObject([MarshalAs(UnmanagedType.Interface)] [In] ref IOleInPlaceActiveObject pActiveObject, [MarshalAs(UnmanagedType.LPWStr)] [In] string pszObjName);
  27. }
  28. }