I am trying to validate whether given username/domain name entered by the user is a valid user on the machine, i.e. If a local user account exists for that user on the given machine. (I do not require all Active Directory users. I just want the users who have at least logged into the machine once.)
LogonUser API helps me in validating username/domain name and password combination, but it does not tell me if username/domain name is valid if I do not have access to the password.