Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating and Referencing a Store

23 views
Skip to first unread message

joe ferraro

unread,
Dec 21, 2001, 10:53:58 AM12/21/01
to
Hi,

I am trying to create a store then populate that store with a number of
folders. In those folders I'd like to populate Contact Items and Basic
email Items. I need to do this programatically based on values from an
Access Database.

I can see how to create a store (AddStore), but when I want to reference the
store I cannot delineate it from other stores. If I were to create a number
of Stores they would all have the same name, "Personal Folder". Nowhere can
I find the actual File location of a given store. Is there something else
returned from the AddStore Function that would allow me to change the name
of the store right there and then? I need to insure that I am accessing the
proper store as I create it, as well as later.

thanks

joe ferraro


Dmitry Streblechenko

unread,
Dec 21, 2001, 12:07:40 PM12/21/01
to
Easy in Extended MAPI, but in VB... I know of one ugly hack: PST Store entry id
includes full path to the PST file, loop through all the top level folders
(Namespace.Folders), for each of them grab MAPIFolder.StoreID, create a string
from it (every two bytes should be converted from hex to a single byte which
must be cast to a character), check if the path of the PST file you have just
added is in that string.

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

"joe ferraro" <joe_f...@findanerd.com> wrote in message
news:OFIoadjiBHA.2408@tkmsftngp02...

0 new messages