Link to home
Start Free TrialLog in
Avatar of MajikTara
MajikTara

asked on

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
Avatar of Corey Scheich
Corey Scheich
Flag of United States of America image

How about

System.Environment.UserDomainName

Corey
ASKER CERTIFIED SOLUTION
Avatar of armoghan
armoghan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial