http://msdn.microsoft.com/en-us/library/dd391692%28VS.85%29.aspx

"Note  Applications cannot programmatically pin themselves to the taskbar. That functionality is reserved strictly for the user."