Solved

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

Posted on 2004-09-22
3
364 Views
Last Modified: 2012-05-05
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
Comment
Question by:MajikTara
  • 2
3 Comments
 
LVL 13

Expert Comment

by:Corey2
ID: 12127833
How about

System.Environment.UserDomainName

Corey
0
 
LVL 18

Accepted Solution

by:
armoghan earned 500 total points
ID: 12131344
you can also use the WNetGetUser in DOTNET

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

Expert Comment

by:armoghan
ID: 12131363
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now