A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

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



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 27th 06, 11:30 PM posted to microsoft.public.outlook.program_addins
Sunny
external usenet poster
 
Posts: 3
Default Outlook2000 and later - how to get the profile used for the session

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
  #2  
Old March 28th 06, 04:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook2000 and later - how to get the profile used for the session

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.

--
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


"Sunny" wrote in message
...
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


  #3  
Old March 30th 06, 05:14 PM posted to microsoft.public.outlook.program_addins
Sunny
external usenet poster
 
Posts: 3
Default Outlook2000 and later - how to get the profile used for the session

In article ,
says...
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
  #4  
Old March 31st 06, 03:03 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook2000 and later - how to get the profile used for the session

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.

--
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


"Sunny" wrote in message
...
In article ,
says...
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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error creating an MAPI session Dominique Schroeder Outlook - Using Forms 1 March 7th 06 02:25 PM
Can outlook2000 connect 2 mail account at the same time ? man Outlook - Installation 1 March 1st 06 09:09 AM
Autofill not working in Terminal Session jcharde Outlook - General Queries 0 February 22nd 06 09:27 PM
limit number of messages sent in 1 session Andrew Zenz Outlook - General Queries 2 February 15th 06 06:53 PM
an outlook2000 macro programming question..... Alont Outlook - General Queries 0 January 8th 06 03:14 AM


All times are GMT +1. The time now is 05:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.