ITaskbarList3.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Standard;
  4. [Guid("ea1afb91-9e28-4b86-90e9-9e9f8a5eefaf")]
  5. [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
  6. [ComImport]
  7. internal interface ITaskbarList3 : ITaskbarList2, ITaskbarList
  8. {
  9. void HrInit();
  10. void AddTab(IntPtr hwnd);
  11. void DeleteTab(IntPtr hwnd);
  12. void ActivateTab(IntPtr hwnd);
  13. void SetActiveAlt(IntPtr hwnd);
  14. void MarkFullscreenWindow(IntPtr hwnd, [MarshalAs(UnmanagedType.Bool)] bool fFullscreen);
  15. [PreserveSig]
  16. HRESULT SetProgressValue(IntPtr hwnd, ulong ullCompleted, ulong ullTotal);
  17. [PreserveSig]
  18. HRESULT SetProgressState(IntPtr hwnd, TBPF tbpFlags);
  19. [PreserveSig]
  20. HRESULT RegisterTab(IntPtr hwndTab, IntPtr hwndMDI);
  21. [PreserveSig]
  22. HRESULT UnregisterTab(IntPtr hwndTab);
  23. [PreserveSig]
  24. HRESULT SetTabOrder(IntPtr hwndTab, IntPtr hwndInsertBefore);
  25. [PreserveSig]
  26. HRESULT SetTabActive(IntPtr hwndTab, IntPtr hwndMDI, uint dwReserved);
  27. [PreserveSig]
  28. HRESULT ThumbBarAddButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] THUMBBUTTON[] pButtons);
  29. [PreserveSig]
  30. HRESULT ThumbBarUpdateButtons(IntPtr hwnd, uint cButtons, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 1)] THUMBBUTTON[] pButtons);
  31. [PreserveSig]
  32. HRESULT ThumbBarSetImageList(IntPtr hwnd, [MarshalAs(UnmanagedType.IUnknown)] object himl);
  33. [PreserveSig]
  34. HRESULT SetOverlayIcon(IntPtr hwnd, IntPtr hIcon, [MarshalAs(UnmanagedType.LPWStr)] string pszDescription);
  35. [PreserveSig]
  36. HRESULT SetThumbnailTooltip(IntPtr hwnd, [MarshalAs(UnmanagedType.LPWStr)] string pszTip);
  37. [PreserveSig]
  38. HRESULT SetThumbnailClip(IntPtr hwnd, RefRECT prcClip);
  39. }