ls_rootpath = rootpath ls_volumnename = space(256) lul_volumenamesize = 256 lul_maximumcomponentlength = 256 ls_filesystemnamebuffer = space(256) lul_filesystemnamesize = 256 lb_rtn = FALSE lb_rtn = getvolumeinformationa(ls_rootpath,ls_volumnename,lul_volumenamesize,lul_volumeserialnumber,lul_maximumcomponentlength,lul_filesystemflags,ls_filesystemnamebuffer,lul_filesystemnamesize) IF lb_rtn = TRUE THEN //19 f_encry_password("1",string(lul_volumeserialnumber)) ELSE //19 ls_rootpath = ls_rootpath + "\" lb_rtn = getvolumeinformationa(ls_rootpath,ls_volumnename,lul_volumenamesize,lul_volumeserialnumber,lul_maximumcomponentlength,lul_filesystemflags,ls_filesystemnamebuffer,lul_filesystemnamesize) IF lb_rtn = TRUE THEN //30 f_encry_password("1",string(lul_volumeserialnumber)) ELSE //30 HALT END IF //30 END IF //19 RETURN string(lul_volumeserialnumber)
//Public function f_encry_password (string as_pwd,string as_action) returns string //string as_pwd //string as_action string ls_temp string ls_return integer i integer li_pos
IF as_pwd = "" THEN //4 RETURN "" END IF //4 IF as_action = "1" THEN //8 FOR i = len(as_pwd) TO 1 STEP -1 //3 ls_return = ls_return + char(asc(mid(as_pwd,i,1)) + 5) NEXT //3 ELSE //8 FOR i = len(as_pwd) TO 1 STEP -1 //7 ls_return = ls_return + char(asc(mid(as_pwd,i,1)) - 5) NEXT //7 END IF //8 RETURN ls_return