Passwords in MAPI

D

Daman

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
 
C

cainrandom

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top