Hello All,
I'm working in windows 7 environment and C# dot net to authenticate windows credentials,
Please help me to authenticate user is administrator or not.
I have to check these credentials at login page and grant access if user is administrator.
Authentication on local machine is needed.
I've found this method but I don't want to check domain name
LogonUser(userName, domain, password, 2, 0, ref tokenHandler);
Thanks.