Is there any way to retrieve another app's "save as" dialog's previous location?

ikantspelwurdz

Well-known member
Joined
Dec 8, 2009
Messages
49
Programming Experience
1-3
Is there any way to retrieve another app's "save as" dialog's previous location?

There is a third party program, which uses Windows Common Dialog libraries to save and open files. I want to write something that will read files saved by this program, and to do this I will need to retrieve the most recent directory that the program used. I can assume that the user will not change this directory often.

The location for it and other apps in Windows 7 appears to be stored in the registry, here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU

but it's in binary. And the location (or even the entire mechanism) could change in the future. So rather than try to read directly from the registry and decrypt the binary, is there an API function, preferably an official one, that I can use to retrieve this setting for another program?
 
Top Bottom