SHAddToRecentDocs without a file?

Posted by Chris Becke on Stack Overflow See other posts from Stack Overflow or by Chris Becke
Published on 2010-03-25T11:56:27Z Indexed on 2010/03/30 23:13 UTC
Read the original article Hit count: 365

Filed under:
|
|
|

I was toying with an IRC client, integrating it with the windows 7 app bar.

To get a "Frequent" or "Recent" items list one has to call SHAddToRecentDocs API. I want to add recent IRC channels visited to the Windows 7 Jumplist for the IRC application. Now, my problem is, IRC channels don't exist in the file system. And SHAddToRecentDocs seems to insist on getting some sort of file system object.

Ive tried to work around it by creating a IShellItem pointing to my application, and giving it a command line to launch the channel. The shell is rebelling however, and thus far has not visibly added any of my "recent document" attempts to the Jumplist.

Is there no way to do this without creating some kind of entirely unwanted filesystem object?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about windows7