Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook2000 and later - how to get the profile used for the session

Geek News

Outlook2000 and later - how to get the profile used for the session
Sunny <sunny[ at ]newsgroup.nospam> 3/27/2006 10:30:26 PM
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
Re: Outlook2000 and later - how to get the profile used for the session
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/28/2006 3:18:32 PM
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" <sunny[ at ]newsgroup.nospam> wrote in message
news:%2341oM4eUGHA.2492[ at ]TK2MSFTNGP11.phx.gbl...
[Quoted Text]
> 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

Re: Outlook2000 and later - how to get the profile used for the session
Sunny <sunny[ at ]newsgroup.nospam> 3/30/2006 4:14:30 PM
In article <OeQpyrnUGHA.1868[ at ]TK2MSFTNGP09.phx.gbl>, kenslovak[ at ]mvps.org
says...
[Quoted Text]
> 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
Re: Outlook2000 and later - how to get the profile used for the session
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 3/31/2006 2:03:59 PM
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" <sunny[ at ]newsgroup.nospam> wrote in message
news:%23SyfHUBVGHA.4348[ at ]TK2MSFTNGP09.phx.gbl...
[Quoted Text]
> In article <OeQpyrnUGHA.1868[ at ]TK2MSFTNGP09.phx.gbl>, kenslovak[ at ]mvps.org
> 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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net