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

  • Thread starter Thread starter davecla
  • Start date Start date
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
 
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.
 
Back
Top