Change pinned taskbar icon (windows 7)

EDIT The info below is a bit obsolete; all new Windows 7 bits are now available as a managed API, available here: http://code.msdn.microsoft.com/WindowsAPICodePack

There is a series of articles on the new Taskbar API by the debugging guru Sasha Goldshtein. You should have a look at the Overlay Icons and Progress Bars API.

You can download the sample code from Windows 7 Taskbar Developer Resources on Microsoft Code. What you’re looking for is the IMClient sample:

The IMClient sample demonstrates how
taskbar overlay icons and taskbar
progress bars can light up an
application’s taskbar button instead
of relying on an additional dialog or
on an icon in the system notification
area (tray).

alt text
(source: microsoft.co.il)

alt text
(source: microsoft.co.il)

alt text
(source: microsoft.co.il)

I believe this should help you achieve what you want.

Leave a Comment