Jeffrey Smith (@whydoubt) commented about dlls/secur32/secur32.c:
}
+static LPCSTR string_NameFormat[] = +{
- "NameUnknown",
- "NameFullyQualifiedDN",
- "NameSamCompatible",
- "NameDisplay",
- "NameUniqueId",
- "NameCanonical",
- "NameUserPrincipal",
- "NameCanonicalEx",
- "NameServicePrincipal",
- "NameDnsDomain",
- "NameGivenName",
- "NameSurname"
The values in the EXTENDED_NAME_FORMAT enumeration are not contiguous, so you need to fill in some gaps.
For instance, NameUniqueId is 6. If passed in, this method would return "NameUserPrincipal".