C#: Clean recently used files from jumplists
Is there a way to clean the some items form the Windows Jump-List using C#? (An applications Jump-List appears when you click right on the applications icon in the Windows 7 Taskbar.)
I would like to clean the menu items representing the recently closed files but I'd like to keep the other menu items.
For example I'd like to clean the items of Google Chromes recently closed websites under the headline "Recently closed". I'd also like to keep the application specific menu items under the headline "Tasks".
开发者_运维知识库All the menu information is stored in some binary files in the directory "%LOCALAPPDATA%\Microsoft\Windows\Recent\CustomDestinations\".
It is possible to delete these files, but if I do so I not only delete the list of recently used files but I also delete the application specific menu items, too.
I'm looking for a way to find and clean the menu items representing the most recently used files for any applicatins Jump-List using C# code. Do you have any ideas?
Thanks for your help!
Maybe it is possible to user the Winodws API Code Pack for C#?
http://code.msdn.microsoft.com/WindowsAPICodePack
精彩评论