You can use either
1. Extended MAPI to either add a PST file to an existing profile or create a
new profile, add the "MSPST MS" service it to, configure it to use the PST
file in quesiton, and log to that profile using MAPILogonEx. C++/Delphi only
2. Outlook Object Model - use Namespace.AddStore to add a PST file to the
current profile. Note that even though using OOM launches outlook.exe, the
Outlook UI does not become visible unless the user has already launched it
or your code explciitly displays an inspector or an explorer.
3. Redemption - you can use RDOSession.Stores.AddPstStore. Next version of
Redemption (4.5) will also add RDOSession.LogonPstStore, which will create
(and delete) a temporary profile with the PST file if you do nto want thee
PST store to be visible in any of the existing profiles.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool