Outlook2000 and later - how to get the profile used for the session

S

Sunny

Hi,
In my addin I need to know under which profile the user have logged in.
To clarify - the user has 2 different profiles, used to login to
different Exchange users. I need to detect in the addin which profile
the user is using.

Any ideas?

Thanks
Sunny
 
K

Ken Slovak - [MVP - Outlook]

Nothing really in the Outlook object model for that. If you are using CDO
1.21 you can use Session.Name to get the profile name or with Redemption
(www.dimastr.com/redemption) you can use RDOSession.ProfileName or
MAPIUtils.CurrentProfileName.
 
S

Sunny

Nothing really in the Outlook object model for that. If you are using CDO
1.21 you can use Session.Name to get the profile name or with Redemption
(www.dimastr.com/redemption) you can use RDOSession.ProfileName or
MAPIUtils.CurrentProfileName.

Thanks Ken,
how do you think, is StoreID going to help in that? I just need to make
the difference between the calendar items, stored in either of the
profiles?

Sunny
 
K

Ken Slovak - [MVP - Outlook]

I don't follow. StoreID has nothing to do with profile names. If you can get
a store in the API you're using you'd use StoreID for that and you can tell
if folders are in different stores by comparing StoreID but that still won't
get you the profile name.
 

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