Hey Chaps,

anyone got a pointer for me to an API that will provide me with the Domain Name of the currently logged on User ?

I need to get the domain name and the User Name. If the User is not a part of a domain I simply want the Logged on UserName (which I can get). If they are a domain User I need to get the domain as well.

Any ideas ?

Cheers

Chubby.