Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   retrieve domain user name (http://www.outlookbanter.com/add-ins-outlook/74924-retrieve-domain-user-name.html)

Jason Wang July 10th 08 03:32 AM

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?

Dmitry Streblechenko July 11th 08 01:33 AM

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.PropettyAccesso r to read the PR_ACCOUNT
property.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Jason Wang" wrote in message
...
Can anyone tell me how to retrieve domain user name after Exchange Email
account is retrieved from Windows registry outlook profile?





All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com