Outlook Automation: How to differentiate between ansi and unicode PST files?

D

davecla

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

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