secur32: Implement more GetUserNameEx() formats.
This commit is contained in:
parent
6643049116
commit
d31bb3f08d
|
@ -1097,12 +1097,6 @@ BOOLEAN WINAPI GetUserNameExW(
|
||||||
DWORD len;
|
DWORD len;
|
||||||
TRACE("(%d %p %p)\n", NameFormat, lpNameBuffer, nSize);
|
TRACE("(%d %p %p)\n", NameFormat, lpNameBuffer, nSize);
|
||||||
|
|
||||||
if (NameFormat == NameUnknown)
|
|
||||||
{
|
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (NameFormat)
|
switch (NameFormat)
|
||||||
{
|
{
|
||||||
case NameSamCompatible:
|
case NameSamCompatible:
|
||||||
|
@ -1135,6 +1129,7 @@ BOOLEAN WINAPI GetUserNameExW(
|
||||||
status = FALSE;
|
status = FALSE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case NameUnknown:
|
||||||
case NameFullyQualifiedDN:
|
case NameFullyQualifiedDN:
|
||||||
case NameDisplay:
|
case NameDisplay:
|
||||||
case NameUniqueId:
|
case NameUniqueId:
|
||||||
|
@ -1143,8 +1138,7 @@ BOOLEAN WINAPI GetUserNameExW(
|
||||||
case NameCanonicalEx:
|
case NameCanonicalEx:
|
||||||
case NameServicePrincipal:
|
case NameServicePrincipal:
|
||||||
case NameDnsDomain:
|
case NameDnsDomain:
|
||||||
FIXME("NameFormat %d not implemented\n", NameFormat);
|
SetLastError(ERROR_NONE_MAPPED);
|
||||||
SetLastError(ERROR_CANT_ACCESS_DOMAIN_INFO);
|
|
||||||
status = FALSE;
|
status = FALSE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue