Is there a API (like WNetGetUser) that will indicated if a user is on a Windows 2000 domain (LAN)?

When my application starts I would like it to programmitically determine if the user is currently logged on to our LAN. We are using Windows 2000 Active Directory network. The name of the domain is "MyDomain" (example). I would like my application to check network connectivity AND the user is on the network and respond with a indication of either Yes or No.

Thanks for the help,
JR
MajikTaraAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
armoghanConnect With a Mentor Commented:
you can also use the WNetGetUser in DOTNET

http://custom.programming-in.net/articles/art9-1.asp?f=WNetGetUser
0
 
Corey ScheichDeveloperCommented:
How about

System.Environment.UserDomainName

Corey
0
 
armoghanCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.