IOleInPlaceActiveObject.cs 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace LYFZ.OtherExpansion.Win32.Com
  4. {
  5. [ComVisible(true), Guid("00000117-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  6. [ComImport]
  7. public interface IOleInPlaceActiveObject
  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 TranslateAccelerator([MarshalAs(UnmanagedType.Struct)] [In] ref tagMSG lpmsg);
  18. [PreserveSig]
  19. [return: MarshalAs(UnmanagedType.I4)]
  20. int OnFrameWindowActivate([MarshalAs(UnmanagedType.Bool)] [In] bool fActivate);
  21. [PreserveSig]
  22. [return: MarshalAs(UnmanagedType.I4)]
  23. int OnDocWindowActivate([MarshalAs(UnmanagedType.Bool)] [In] bool fActivate);
  24. [PreserveSig]
  25. [return: MarshalAs(UnmanagedType.I4)]
  26. int ResizeBorder([MarshalAs(UnmanagedType.Struct)] [In] ref tagRECT prcBorder, [MarshalAs(UnmanagedType.Interface)] [In] ref IOleInPlaceUIWindow pUIWindow, [MarshalAs(UnmanagedType.Bool)] [In] bool fFrameWindow);
  27. [PreserveSig]
  28. [return: MarshalAs(UnmanagedType.I4)]
  29. int EnableModeless([MarshalAs(UnmanagedType.Bool)] [In] bool fEnable);
  30. }
  31. }