mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[NETAPI32]
NetLocalGroupSetInfo: Implement level 1. svn path=/trunk/; revision=59206
This commit is contained in:
parent
023c8e237d
commit
70cef33064
1 changed files with 17 additions and 1 deletions
|
@ -1718,7 +1718,7 @@ NetLocalGroupSetInfo(
|
|||
SAM_HANDLE DomainHandle = NULL;
|
||||
SAM_HANDLE AliasHandle = NULL;
|
||||
ALIAS_NAME_INFORMATION AliasNameInfo;
|
||||
|
||||
ALIAS_ADM_COMMENT_INFORMATION AdminCommentInfo;
|
||||
NET_API_STATUS ApiStatus = NERR_Success;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
|
@ -1816,6 +1816,22 @@ NetLocalGroupSetInfo(
|
|||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
/* Set the alias admin comment */
|
||||
RtlInitUnicodeString(&AdminCommentInfo.AdminComment,
|
||||
((PLOCALGROUP_INFO_1)buf)->lgrpi1_comment);
|
||||
|
||||
Status = SamSetInformationAlias(AliasHandle,
|
||||
AliasAdminCommentInformation,
|
||||
&AdminCommentInfo);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
TRACE("SamSetInformationAlias failed (ApiStatus %lu)\n", ApiStatus);
|
||||
ApiStatus = NetpNtStatusToApiStatus(Status);
|
||||
goto done;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
ApiStatus = ERROR_INVALID_LEVEL;
|
||||
goto done;
|
||||
|
|
Loading…
Reference in a new issue