A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Programmatically accessing password protected pst file



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 16th 06, 04:09 PM posted to microsoft.public.outlook.program_addins
Ashutosh Ambekar
external usenet poster
 
Posts: 1
Default Programmatically accessing password protected pst file

Hi,

I want to write a outlook plug-in that reads pst files. I want to know how
do I know

1. Which pst files are used in the curent open outlook session
2. Which of these pst files are password protected
3. APis that support password parameter while reading a pst file.

thanks in advance.
Ashutosh
Ads
  #2  
Old October 16th 06, 07:52 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Programmatically accessing password protected pst file

What plugin? COM add-in or an Exchange Client Extension? What programming
language?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ashutosh Ambekar" Ashutosh wrote in
message ...
Hi,

I want to write a outlook plug-in that reads pst files. I want to know how
do I know

1. Which pst files are used in the curent open outlook session
2. Which of these pst files are password protected
3. APis that support password parameter while reading a pst file.

thanks in advance.
Ashutosh



  #3  
Old October 17th 06, 06:53 AM posted to microsoft.public.outlook.program_addins
Ashutosh Ambekar
external usenet poster
 
Posts: 2
Default Programmatically accessing password protected pst file

Hi Dmitry,

thanks for response.

It is a COM add-in using managed C++ (using MFC in static library and
static link to ATL).

regards,
Ashutosh

"Dmitry Streblechenko" wrote:

What plugin? COM add-in or an Exchange Client Extension? What programming
language?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ashutosh Ambekar" Ashutosh wrote in
message ...
Hi,

I want to write a outlook plug-in that reads pst files. I want to know how
do I know

1. Which pst files are used in the curent open outlook session
2. Which of these pst files are password protected
3. APis that support password parameter while reading a pst file.

thanks in advance.
Ashutosh




  #4  
Old October 17th 06, 07:56 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Programmatically accessing password protected pst file

I don't use C++, but I don't think you can use natively use MFC or ATL in a
*managed* code.
If you are using unmanaged C++, you can resort to Extended MAPI, otherwise
you will need to use something like mapi33 library (/Net wrapper for
Extended MAPI).
1. You will need to loop through the stores in the current session
(IMAPISession::GetMsgStoresTable) and for each store check if the value of
the PR_MDB_PROVIDER property is MSPST_UID_PROVIDER
2. You can check the value of the PR_PST_ENCRYPTION property in the
corresponding PST profile section - see
http://www.google.com/search?hl=en&l...ervice+msp st
3. When adding a new PST file to the session, you will need to specify the
PR_PST_PW_SZ_OLD and PR_PST_PW_SZ_NEW properties - see

plug
You can use Redemption for that (usable from any language, managed or
unmanaged, see the url below) - RDOStore object
(http://www.dimastr.com/redemption/rdo/rdostore.htm) exposes the StoreKind
property. You can also use the RDOStores.AddPstStoreWithPassword method.
/plug

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ashutosh Ambekar" wrote in
message ...
Hi Dmitry,

thanks for response.

It is a COM add-in using managed C++ (using MFC in static library and
static link to ATL).

regards,
Ashutosh

"Dmitry Streblechenko" wrote:

What plugin? COM add-in or an Exchange Client Extension? What programming
language?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ashutosh Ambekar" Ashutosh wrote in
message ...
Hi,

I want to write a outlook plug-in that reads pst files. I want to know
how
do I know

1. Which pst files are used in the curent open outlook session
2. Which of these pst files are password protected
3. APis that support password parameter while reading a pst file.

thanks in advance.
Ashutosh






 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Protected PST Jack Outlook - General Queries 5 November 23rd 06 04:43 AM
password protected .pst files... Brad Pears Outlook - General Queries 14 September 14th 06 04:23 PM
unable to open password protected PST file... Brad Pears Outlook - General Queries 1 September 8th 06 09:22 PM
Password Protected PST - Profile Migration Bunny Outlook - General Queries 2 May 24th 06 11:18 PM
Password protected pst Bigdog63121 Outlook - Installation 1 February 7th 06 04:52 PM


All times are GMT +1. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.