读书人

netgroupadduser返回值提示找不到组名

发布时间: 2012-01-18 00:23:26 作者: rapoo

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.
你看看具体的返回值吧!~

读书人网 >VC/MFC

热点推荐