PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins retrieve domain user name

Reply

retrieve domain user name

 
Thread Tools Rate Thread
Old 10-07-2008, 03:32 AM   #1
Jason Wang
Guest
 
Posts: n/a
Default retrieve domain user name


Can anyone tell me how to retrieve domain user name after Exchange Email
account is retrieved from Windows registry outlook profile?
  Reply With Quote
Old 11-07-2008, 01:33 AM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: retrieve domain user name

On the MAPI level, you will need to retrieve the PR_ACCOUNT property
(0x3A00001E) from the IMailUser object opened using the entry id returned by
IMAPISession::QueryIdentity().
If you are using Outlook 2007, you can use
Namespace.CurrentUser.AddressEntry.PropettyAccessor to read the PR_ACCOUNT
property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Jason Wang" <JasonWang@discussions.microsoft.com> wrote in message
news:61350126-B16F-4E04-8F32-7971F4B5BCEB@microsoft.com...
> Can anyone tell me how to retrieve domain user name after Exchange Email
> account is retrieved from Windows registry outlook profile?



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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