[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

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
0
MajikTara
Asked:
MajikTara
  • 2
1 Solution
 
Corey ScheichDeveloperCommented:
How about

System.Environment.UserDomainName

Corey
0
 
armoghanCommented:
you can also use the WNetGetUser in DOTNET

http://custom.programming-in.net/articles/art9-1.asp?f=WNetGetUser
0
 
armoghanCommented:
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now