This archive of samples, originally by Yochay Kiriaty, contains code demonstrating how to work with the Windows taskbar, and how to use some of its features.
The original samples were hosted on Channel 9, but the original content is no longer available (archive link).