I have done an AddIn for Outlook 2003 with VSTO 2005. I have a small problem. The users log into windows with a local account. However, in Outlook, they get an extra login form where they need to input their domain account in order to use Outlook with their data.
What I need to do is get the name with which the user logs into Outlook. So far, I tested Environment.UserName and Environment.UserDomainName, but the first one returns the local account name and the second one just the domain name.
Does anybody have any solutions for this problem?