P
paf
Unregistered / Unconfirmed
GUEST, unregistred user!
const
netapi32 = 'netapi32.dll';
Function NetGroupAddUser(servername,GroupName,username: PwideChar):LongInt; stdcall; external netapi32;
........
re:=NetGroupAddUser(nil,'Users','Guest');
返回总是 2220 (组名找不到)!
怎样才可以把"Guest" 加入"Users"组,或者 "Administrators"组中!
netapi32 = 'netapi32.dll';
Function NetGroupAddUser(servername,GroupName,username: PwideChar):LongInt; stdcall; external netapi32;
........
re:=NetGroupAddUser(nil,'Users','Guest');
返回总是 2220 (组名找不到)!
怎样才可以把"Guest" 加入"Users"组,或者 "Administrators"组中!