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
367 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

832 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