to lich007 我对forgot2002修正程序!已经可以用了!!
……99年我写过一个,现在不知道丢哪里去了!
function FindScreenSaverPwd:string;//查找屏幕保护的口令
const
BTmp : array[0..15] of Byte =( 72,238,118, 29,103,
105,161, 27,122,140,
71,248, 84,149,151,
95);
var
STmp : array[1..32] of Byte;
Count,i,j : Integer;
strTmp : string;
bytTmp : Byte;
PwdStr : string;
begin
PwdStr:='';
for i:=1 to 32 do STmp:=0;
with TRegistry.Create do
try
RootKey:=HKEY_CURRENT_USER;
OpenKey('Control Panel/desktop',False);
Count:=ReadBinaryData('ScreenSave_Data',STmp,Sizeof(STmp));
if Count>0 then
begin
j:=1;
for i:=1 to Trunc((Count-1)/2) do
if STmp<>00 then
begin
strTmp:=Chr(STmp[j]);
Inc(j);
strTmp:=strTmp + Chr(STmp[j]);
bytTmp:=StrToInt('$'+strTmp);
PwdStr:=PwdStr+Chr(bytTmp xor BTmp[i-1]);
Inc(j);
end;
end;
CloseKey;
finally
Free;
end;
Result:=PwdStr;
end;