netgroupadduser返回值提示找不到组名?该怎么处理

netgroupadduser返回值提示找不到组名?LPWSTRgroupL administrators nStatusNetGroupAddUser(NULL,gr

netgroupadduser返回值提示找不到组名?
LPWSTR       group=L "administrators ";
  nStatus=   NetGroupAddUser(NULL,group,lpszUserName);

[解决办法]
If the function succeeds, the return value is NERR_Success.

If the function fails, the return value can be one of the following error codes.

Return code Description
ERROR_ACCESS_DENIED The user does not have access to the requested information.
NERR_InvalidComputer The computer name is invalid.
NERR_NotPrimary The operation is allowed only on the primary domain controller of the domain.
NERR_SpeGroupOp The operation is not allowed on certain special groups. These groups include user groups, admin groups, local groups, and guest groups.
NERR_UserNotFound The user name could not be found.
NERR_GroupNotFound The global group name could not be found.
你看看具体的返回值吧!~