A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , ,

Default PST File from registry info





 
 
Thread Tools Display Modes
  #1  
Old October 11th 06, 04:04 PM posted to microsoft.public.outlook
Alpha
external usenet poster
 
Posts: 3
Default Default PST File from registry info

Lately I've been trying to make a little software tool that would back
up several information, on wich PST files are included.

I know I may find cases on which there could be more than one profile
and each of them having one or more .pst files.

I searched everywhere but couldn't find some certain info on where the
information about .pst files is stored.

However, I found this vague information:

There's a registry key in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles

There is a key value named "Default Profile" with the name of the
default profile (d'oh!) and also there's subkeys to each of the
profiles.

So, in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles\profileName\ I would find some info on the profile
settings. There's a subkey named 9207f3e0a3b11019908b08002b2a56c2, in
which more CLSIDs are named, each one of them with different info (such
as Personal Folders, Address Files, Account Info and such).

But how do I know what's the exact name on which the location of the
pst file is/are located? I could find that one on my PC, but nothing
guarantees me it'll be the same on another PC.

Thanks in advance, and please forgive me for my poor english.-

Ads
  #2  
Old October 11th 06, 04:31 PM posted to microsoft.public.outlook
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Default PST File from registry info

But how do I know what's the exact name on which the location of the
pst file is/are located?


There isn't one. The key will vary from profile to profile.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Alpha" wrote in message ups.com...
Lately I've been trying to make a little software tool that would back
up several information, on wich PST files are included.

I know I may find cases on which there could be more than one profile
and each of them having one or more .pst files.

I searched everywhere but couldn't find some certain info on where the
information about .pst files is stored.

However, I found this vague information:

There's a registry key in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles

There is a key value named "Default Profile" with the name of the
default profile (d'oh!) and also there's subkeys to each of the
profiles.

So, in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles\profileName\ I would find some info on the profile
settings. There's a subkey named 9207f3e0a3b11019908b08002b2a56c2, in
which more CLSIDs are named, each one of them with different info (such
as Personal Folders, Address Files, Account Info and such).

But how do I know what's the exact name on which the location of the
pst file is/are located? I could find that one on my PC, but nothing
guarantees me it'll be the same on another PC.

Thanks in advance, and please forgive me for my poor english.-

  #3  
Old October 11th 06, 04:59 PM posted to microsoft.public.outlook
Scot T Brennecke
external usenet poster
 
Posts: 4
Default Default PST File from registry info

In which language are you writing your "little software tool"? These properties are most accessible
to extended MAPI, for which the API is designed for C/C++. If you are interested in how to use
extended MAPI to access this data, let me know.

"Alpha" wrote in message
ups.com...
Lately I've been trying to make a little software tool that would back
up several information, on wich PST files are included.

I know I may find cases on which there could be more than one profile
and each of them having one or more .pst files.

I searched everywhere but couldn't find some certain info on where the
information about .pst files is stored.

However, I found this vague information:

There's a registry key in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles

There is a key value named "Default Profile" with the name of the
default profile (d'oh!) and also there's subkeys to each of the
profiles.

So, in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles\profileName\ I would find some info on the profile
settings. There's a subkey named 9207f3e0a3b11019908b08002b2a56c2, in
which more CLSIDs are named, each one of them with different info (such
as Personal Folders, Address Files, Account Info and such).

But how do I know what's the exact name on which the location of the
pst file is/are located? I could find that one on my PC, but nothing
guarantees me it'll be the same on another PC.

Thanks in advance, and please forgive me for my poor english.-



  #4  
Old October 11th 06, 05:12 PM posted to microsoft.public.outlook
DL
external usenet poster
 
Posts: 2,101
Default Default PST File from registry info

It would not be best practice to hard code any location in an application

"Alpha" wrote in message
ups.com...
Lately I've been trying to make a little software tool that would back
up several information, on wich PST files are included.

I know I may find cases on which there could be more than one profile
and each of them having one or more .pst files.

I searched everywhere but couldn't find some certain info on where the
information about .pst files is stored.

However, I found this vague information:

There's a registry key in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles

There is a key value named "Default Profile" with the name of the
default profile (d'oh!) and also there's subkeys to each of the
profiles.

So, in HKCU\Software\Microsoft\Windows Messaging
Subsystem\Profiles\profileName\ I would find some info on the profile
settings. There's a subkey named 9207f3e0a3b11019908b08002b2a56c2, in
which more CLSIDs are named, each one of them with different info (such
as Personal Folders, Address Files, Account Info and such).

But how do I know what's the exact name on which the location of the
pst file is/are located? I could find that one on my PC, but nothing
guarantees me it'll be the same on another PC.

Thanks in advance, and please forgive me for my poor english.-



  #5  
Old October 12th 06, 06:48 PM posted to microsoft.public.outlook
Alpha
external usenet poster
 
Posts: 3
Default Default PST File from registry info

On Oct 11, 12:12 pm, "DL" address@invalid wrote:
It would not be best practice to hard code any location in an application


Thanks, and that's the very reason I'm trying to find out how do the
keys name get generated or how do they relate to the profile itself
(maybe it gets generated from the profile name, maybe from the date it
was created, or maybe it just random).

Also, forgive me for not mentioning: I'm writing this in Excel's VBA,
but I managed to get to read the registry as any other application
would.

So, Mr. Brennecke, if I could use MAPI APIs (that makes a rhyme) and
that would get me to the profile info I need, it would be great. Thank
you for any info you can give me about it (or at least, where to start
from).

  #6  
Old October 23rd 06, 03:46 PM posted to microsoft.public.outlook
Alpha
external usenet poster
 
Posts: 3
Default Default PST File from registry info

Well, I finally found the way to do it. I'll post the solution as for
anyone in the future having the same trouble.

For each profile, a key is created in
HKCU\Software\Microsoft\Windows Messaging Subsystem\Profiles

Let's say our profile was named "Test profile", so, the key would be:

HKCU\Software\Microsoft\Windows Messaging Subsystem\Profiles\Test
Profile

In there, different subkeys will be created, according to the services
used by the profile, but that is beyond our purpose.

In one of them, and ONLY one of them, there will be a value called
"001e6700", it's a string value containing the path to the default pst
file.

Again, for the sake of an example, lets say in
"HKCU\Software\Microsoft\Windows Messaging Subsystem\Profiles\Test
Profile" I have the following subkeys:

-055380715d92da11950000508baecadf
-065380715d92da11950000508baecadf
-0a0d020000000000c000000000000046
-13dbb0c8aa05101a9bb000aa002fc45a
-295380715d92da11950000508baecadf
-2a5380715d92da11950000508baecadf
-42acdf40ca5b11cdb7ba00aa003cf7f1
-8503020000000000c000000000000046
-9207f3e0a3b11019908b08002b2a56c2
-f85280715d92da11950000508baecadf
-f95280715d92da11950000508baecadf
-fa5280715d92da11950000508baecadf
-fe5280715d92da11950000508baecadf
-ff5280715d92da11950000508baecadf

In one and just one of them there will be a value called "001e6700",
for example, let's suppose it's located at:

HKCU\Software\Microsoft\Windows Messaging Subsystem\Profiles\Test
Profile\065380715d92da11950000508baecadf
String Value: 001e6700
Containing: "C:\Test\test.pst"

***

Analyzing Outlook registry access with Sysinternals Regmon I found
Outlook itself queries on the different subkeys looking for the one
containing the value 001e6700, but just after reading the KB at
http://support.microsoft.com/kb/278940 I realized it was unique.

Hope this helps somebody... at least it helps me, lol.

Thanks everyone for their interest.

Alpha.-

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change default reminders to a second (of 3) pst file? Runs in Circles Outlook - Calandaring 1 September 19th 06 07:02 PM
PST path and registry Key Xhork Outlook - Installation 0 June 28th 06 04:58 PM
Copying PST file resets unseen-message info Michael Kairys Outlook - General Queries 6 April 12th 06 09:42 PM
Deleting unwanted folders from default PST file Level 13 Outlook - General Queries 1 March 4th 06 06:19 PM
how to change default delivery location to my new pst file sf= Outlook - General Queries 5 February 20th 06 04:18 PM


All times are GMT +1. The time now is 10:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Mortgage - Credit Cards - Free Verizon Ringtones - Football Forum - Loans