Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook - General Queries (http://www.outlookbanter.com/outlook-general-queries/)
-   -   Outlook Automation: How to differentiate between ansi and unicode PST files? (http://www.outlookbanter.com/outlook-general-queries/19280-outlook-automation-how-differentiate-between.html)

[email protected] June 29th 06 04:13 AM

Outlook Automation: How to differentiate between ansi and unicode PST files?
 
Anyone know how I can programmatically tell if a PST file is ansi or
unicode based?

I can manually check for either "Personal Folders File (97-2002)"
or "Personal Folders File" in the advanced tab, but how can I do
this with automation.

Thanks and regards,

David


Ken Slovak - [MVP - Outlook] June 29th 06 02:44 PM

Outlook Automation: How to differentiate between ansi and unicode PST files?
 
You could use the MAPI property PR_STORE_SUPPORT_MASK (0x340D0003) on the
Store object of the PST file and check for the STORE_UNICODE_OK bit. That
would have to be done using Extended MAPI or CDO 1.21 or Redemption or some
other API that supports using MAPI properties.

A better place to post questions like this is in one of the Outlook
programming newsgroups.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
oups.com...
Anyone know how I can programmatically tell if a PST file is ansi or
unicode based?

I can manually check for either "Personal Folders File (97-2002)"
or "Personal Folders File" in the advanced tab, but how can I do
this with automation.

Thanks and regards,

David




All times are GMT +1. The time now is 03:40 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