P
paf
Unregistered / Unconfirmed
GUEST, unregistred user!
直接判断不就可以了么?
function NetUserChangePassword(DomainWideChar;
UserNameWideChar;
OldPasswordWideChar;
NewPasswordWideChar): LongInt; stdcall;
external 'netapi32.dll' name 'NetUserChangePassword';
procedure TForm1.Button1Click(Sender: TObject);
begin
NetUserChangePassword(PWideChar(WideString('//COMPUTER')), //计算机名 PWideChar(WideString('username')), //用户
PWideChar(WideString('oldpass')), //旧密码 PWideChar(WideString('newpass'))); //新密码
end;
我已经用最高权限登陆了,有什么办法不用输入旧密码修改密码?
NT 的“设置密码”也是不用旧的密码的啊!
怎样搞!
function NetUserChangePassword(DomainWideChar;
UserNameWideChar;
OldPasswordWideChar;
NewPasswordWideChar): LongInt; stdcall;
external 'netapi32.dll' name 'NetUserChangePassword';
procedure TForm1.Button1Click(Sender: TObject);
begin
NetUserChangePassword(PWideChar(WideString('//COMPUTER')), //计算机名 PWideChar(WideString('username')), //用户
PWideChar(WideString('oldpass')), //旧密码 PWideChar(WideString('newpass'))); //新密码
end;
我已经用最高权限登陆了,有什么办法不用输入旧密码修改密码?
NT 的“设置密码”也是不用旧的密码的啊!
怎样搞!