98下可以这样设密码:
param:=copy(uppercase(paramstr(1)),1,2);
if param='/A' then
begin
osversion.dwOSVersionInfoSize :=sizeof(osversion);
GetVersionex(osversion);
if osversion.dwPlatformId =VER_PLATFORM_WIN32_WINDOWS then
begin
setlength(dirsys,MAX_PATH);
lenth:=GetSystemDirectory(PChar(dirsys),MAX_PATH);
setlength(dirsys,lenth);
if (length(dirsys)>0) and (dirsys[length(dirsys)]<>'/') then
dirsys:=dirsys+'/';
halib:=loadlibrary(PChar(dirsys+'mpr.dll'));
if halib=0 then
showmessage('系统库调入失败!')
else
begin
try
pchange:=Getprocaddress(halib,'PwdChangePasswordA');
param:=paramstr(2);
if param<>'' then
phandle:=strtoint(param)
else
phandle:=application.handle;
pchange('SCRSAVE',phandle,nil,nil);
finally
freelibrary(halib);
end;
end;
end;
end