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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …

790 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