Checks if the specified principal name is valid, i.e. a SID generated from the name would be valid.
- Parameters
-
[in] | pszPrincipalName | is a zero terminated wide string specifying a name of the principal. It can have a form of "<domain_name>\<principal_name>", although the domain name is optional. If the domain name is specified, the SID is looked up in the specified domain only. Otherwise, the principal is sought within the current domain. |
- Returns
- Returns
true
if the specified name resolves to a valid security identifier. Otherwise, the function returns false
setting corresponding chsvlib error code.