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

retrieve domain user name



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 10th 08, 03:32 AM posted to microsoft.public.outlook.program_addins
Jason Wang
external usenet poster
 
Posts: 4
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?
Ads
  #2  
Old July 11th 08, 01:33 AM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default 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?



 




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
Add new user to my exchange server without her to be in the domain Alon Outlook - General Queries 5 May 2nd 07 03:55 PM
Migrating Outlook settings from local user account to domain user accounts [email protected] Outlook - General Queries 3 March 27th 07 03:06 AM
Retrieve Email Fails (sbcglobal, other domain) rob Outlook - General Queries 5 April 18th 06 02:38 PM
outlook rules..from domain user Teresa Outlook - Using Contacts 3 March 30th 06 11:15 PM
Always prompted for User name and domain Lorimerc Outlook - Installation 0 March 24th 06 10:32 AM


All times are GMT +1. The time now is 08:34 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.