Re: How to get the list of "Recent Documents", with code
- From: nandan Mehra <nandan.mehra@xxxxxxxxx>
- Date: Tue, 12 Feb 2008 02:40:09 -0800 (PST)
On Feb 12, 3:24 pm, Daniel James <wastebas...@xxxxxxxxxxxxxxxx> wrote:
In article <news:6698BAE8-8226-4186-80AE-213F0B71198E@xxxxxxxxxxxxx>,
Tom Serface wrote:
Here's how I do it using the CRecentFileList object.
No, Tom, I don't believe that's what the OP is asking about.
I think he wants to access the files on the "Documents" entry of the
Windows "Start" menu (for all applications), not the MRU list for
current app.
The answer is that these files are stored as shortcuts in the user's
recent files folder. To access them one should call SHGetFolderPath
with nFolder set to CSIDL_RECENT to discover the name of the path, and
then iterate over the shortcuts in that directory.
Note that in Vista SHGetFolderPath is "deprecated" (it still works) and
MS provide a new SHGetKnownFolderPath API which is intended to replace
it. However, the use of SHGetKnownFolderPath cannot seriously be
recommended as applications that use it will be unable to run on XP and
earlier versions of Windows.
Cheers,
hi thx for giving reply cud u tell me plz how can i access these
current document ......plz suggest to me ...
i have spend a lot of time in it and still i didn't find any solution
for this .
if u know then help to me i will be thx ful to u
Daniel.
.
- References:
- How to get the list of "Recent Documents", with code
- From: nandan Mehra
- Re: How to get the list of "Recent Documents", with code
- From: Tom Serface
- Re: How to get the list of "Recent Documents", with code
- From: Daniel James
- How to get the list of "Recent Documents", with code
- Prev by Date: Re: How to get the list of "Recent Documents", with code
- Next by Date: Re: Getting notification for dynamically added controls
- Previous by thread: Re: How to get the list of "Recent Documents", with code
- Next by thread: Re: How to get the list of "Recent Documents", with code
- Index(es):