Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   Passwords in MAPI (http://www.outlookbanter.com/add-ins-outlook/86061-passwords-mapi.html)

Daman February 11th 09 06:44 AM

Passwords in MAPI
 
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


[email protected] February 11th 09 12:46 PM

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


All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com