Do you want to log into multiple profiles using code (only one Outlook
session can run at a time, you have to log off to be able to log into a new
profile), or do you want to read profile information from the registry?
There is a profile API available but you can only work with it using
Extended MAPI (C++ or Delphi only) or from ProfMan, a library that comes
with Redemption (www.dimastr.com/redemption).
What i mean by "accessing multiple Profiles " means, let say MS-Outlook is
setup with 10 profiles and there will be 10 database respectively.
My program will be scheduled and it will access required messages details
from each of the 10 profiles and update database for respective profiles.
You'd have to set the Mail applet in the Control Panel to prompt for a
profile on Outlook start and be there to select each profile in turn,
exiting and restarting Outlook each time you wanted to use a different
profile.
To be able to log into profiles one after another using a profile logon
you'd need to be using CDO 1.21 or Extended MAPI or a MAPI wrapper such as
Redemption (www.dimastr.com/redemption).