首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

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

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

热点排行