LPWSTR group=L"administrators";
nStatus= NetGroupAddUser(NULL,group,lpszUserName);
nStatus= NetGroupAddUser(NULL,group,lpszUserName);
解决方案 »
- WINPE里面使用WNetAddConnection2报1312Error
- 关于stl
- mysql编码问题
- xp启动时,VC托盘图标添加失败?各位老大,急啊,请帮忙!
- 大家想必知道位图格式为RGB(565),RGB(555),有没有听说过RGB(444),RGB(333)呢?
- 北京应该拿什么样的薪水
- 急!!! ------ RichEditView 出现半个汉字及乱码该如何解决?(进者有分)
- debug下出现access violation错误
- 最新的platform sdk哪里下载?
- 在VC里调用API函数
- 跪求《windows多媒体编程基础》电子书籍的下载地址!!我给分
- 如何给平行线画中分线
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.
你看看具体的返回值吧!~
nStatus= NetGroupAddUser(NULL,group,lpszUserName);系统管理员的group不是administrators么?