This might come as a bit of a shock to you, but XP [b]DID NOT[/b] allow you to pin [u]Folders[/u] to the task bar.
What would be the point of pinning a Folder to the taskbar, when the taskbar's function is to allow easy access to executable files - not folders.
It [b]DID[/b] however, allow you to create [b]SHORTCUTS[/b] of Folders then attach them to your Desktop. It also allowed you to Pin individual files to the Start Menu.
Both of these XP capabilities are still available within Windows 7.
However, any files that were attached to the XP taskbar, didn't have JUMP LISTS capability like Windows 7 offers.