I want to get the username and domain when a user login to a PC. This one has to be get at the window login page. So I may check if they can have certain access. How can I do that?
Now I want to change to the program have a login page asking for username and password.I want to get the username from the program and compare it with the domain which is used to login to window.if the user is not in that domain, then they will not be able to access the program.
please provide sample code if possible.
thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.