I'd like to programmatically add a PST file to a person's Outlook profile. I found some code here:
http://www.eggheadcafe.com/community/aspnet/65/10030171/try-this-code.aspx
While that does the trick, it still leaves the question - "Where does outlook keep this list of mounted PST files?" Is it in the registry? A config file somewhere? Anybody?
This code (from a current project) searches for and decodes the names and paths of both Unicode & Non-Unicode PST files.
The registry entry is
Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\<ProfileName>
001f301 is the name of the unicode PST
It's in the registry, by the way.
That's an internal implementation detail subject to change from version to version.