View Single Post
  #2  
Old February 11th 09, 12:46 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 24
Default Passwords in MAPI

On Feb 11, 1:44*am, "Daman" u49522@uwe wrote:
I am testing the waters in MAPI and the first thing is I hit a wall regarding
passwords.

1. How do I open a .pst file which has been password protected ? How do I
pass along the password so that no UI dialogs are thrown which asks for the
password ?

2. How do I login into the Exchange server, using an AD account and passing
the password for that AD user, again, without the UI dialog for a password
being thrown at me ?

Can anyone guide me through these points ?

Thanks in advance !!!
Daman


1. When creating the PST message service, set the property
PR_PST_PW_SZ_OLD (defined in mspst.h)

2. Launch your MAPI process in the context of the AD user that has
access to the account, e.g. through CreateProcessWithLogonW
Ads