Desktop Functions:

   Smart Device Functions:

Show Recent Changes
Subscribe (RSS)
Misc. Pages
Helpful Tools
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
ITaskbarList (shell32)
Exposes methods that control the taskbar. It allows you to dynamically add, remove, and activate items on the taskbar.

C# Signature:

public interface ITaskbarList
     /// <summary>
     /// Activates an item on the taskbar. The window is not actually activated; the window's item on the taskbar is merely displayed as active.
     /// </summary>
     /// <param name="hWnd">A handle to the window on the taskbar to be displayed as active.</param>
     void ActivateTab([In] IntPtr hWnd);

     /// <summary>
     /// Adds an item to the taskbar.
     /// </summary>
     /// <param name="hWnd">A handle to the window to be added to the taskbar.</param>
     void AddTab([In] IntPtr hWnd);

     /// <summary>
     /// Deletes an item from the taskbar.
     /// </summary>
     /// <param name="hWnd">A handle to the window to be deleted from the taskbar.</param>
     void DeleteTab([In] IntPtr hWnd);

     /// <summary>
     /// Initializes the taskbar list object. This method must be called before any other ITaskbarList methods can be called.
     /// </summary>
     void HrInit();

     /// <summary>
     /// Marks a taskbar item as active but does not visually activate it.
     /// </summary>
     /// <param name="hWnd">A handle to the window to be marked as active.</param>
     void SetActiveAlt([In] IntPtr hWnd);

VB Signature:

Declare Function ITaskbarList Lib "shell32.dll" (TODO) As TODO

User-Defined Types:


Alternative Managed API:

Do you know one? Please contribute it!



Tips & Tricks:

Please add some!

Sample Code:

Please add some!


Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

Access directly from VS:
Terms of Use
Find References
Show Printable Version