Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / March 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sunny - 27 Mar 2006 23:30 GMT
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
Ken Slovak - [MVP - Outlook] - 28 Mar 2006 16:18 GMT
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.

Signature

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

> Hi,
> In my addin I need to know under which profile the user have logged in.
[quoted text clipped - 6 lines]
> Thanks
> Sunny
Sunny - 30 Mar 2006 17:14 GMT
> 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
Ken Slovak - [MVP - Outlook] - 31 Mar 2006 15:03 GMT
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.

Signature

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

>> 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
[quoted text clipped - 7 lines]
>
> Sunny
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.