这个好像更接近真相,但密码在哪里呢?
clea
DECLARE INTEGER FileTimeToLocalFileTime IN KERNEL32.DLL ;
STRING lpFileTime, ;
STRING @ lpLocalFileTime
DECLARE INTEGER FileTimeToSystemTime IN KERNEL32.DLL ;
STRING lpFileTime, ;
STRING @ lpSystemTime
Declare Integer CredReadA IN Advapi32
string TargetName,long Type,long Flags,long @Credential
tn="192.168.10.181"
stt=0
?CredReada(tn,2,0,@stt)
&&读取凭据,正确,但还不会各参数分离
st2=SYS(2600,stt,520)
?CTOBIN(SYS(2600,stt,4),"4rs")
?CTOBIN(SYS(2600,stt+4,4),"4rs")
?STREXTRACT(SYS(2600,CTOBIN(SYS(2600,stt+8,4),"4rs"),256),"",CHR(0))
*?SYS(2600,CTOBIN(SYS(2600,stt+12,4),"4rs"),100)
&&不知道这个为什么不对
lTime =REPLICATE(CHR(0),8)
FileTimeToLocalFileTime(SYS(2600,stt+16,8), @LTime)
?FTime2SysTime(LTime)
?CTOBIN(SYS(2600,stt+24,4),"4rs")
?CTOBIN(SYS(2600,stt+28,4),"4rs")
?CTOBIN(SYS(2600,stt+32,4),"4rs")
?CTOBIN(SYS(2600,stt+36,4),"4rs")
?CTOBIN(SYS(2600,stt+40,4),"4rs")
?CTOBIN(SYS(2600,stt+44,4),"4rs")
?STREXTRACT(SYS(2600,CTOBIN(SYS(2600,stt+48,4),"4rs"),256),"",CHR(0))
retu
FUNCTION FTime2SysTime
lPARAMETERS sFileTime
LOCAL sSystemTime,rc,wYear,wMonth,wDayOfWeek,wDay,wHour,wMinute,wSecond,wMilliseconds,sDateTime
sSystemTime = REPLICATE(CHR(0),16)
rc = FileTimeToSystemTime(sFileTime, @sSystemTime)
wYear
= ctobin(SUBSTR(sSystemTime, 1,2),"2rs")
wMonth
= ctobin(SUBSTR(sSystemTime, 3,2),"2rs")
wDayOfWeek
= ctobin(SUBSTR(sSystemTime, 5,2),"2rs")
wDay
= ctobin(SUBSTR(sSystemTime, 7,2),"2rs")
wHour
= ctobin(SUBSTR(sSystemTime, 9,2),"2rs")
wMinute
= ctobin(SUBSTR(sSystemTime, 11,2),"2rs")
wSecond
= ctobin(SUBSTR(sSystemTime, 13,2),"2rs")
wMilliseconds = ctobin(SUBSTR(sSystemTime, 15,2),"2rs")
sDateTime = trans(wYear) + [.] + trans(wMonth,"@l 99") + [.] + trans(wDay,"@l 99") + [ ] + ;
trans(wHour, "@l 99") + [:] + trans(wMinute, "@l 99") + [:] + trans(wSecond, "@l 99") + [.] + trans(wMilliseconds,"@l 999")
RETURN IIF(rc=1,sDateTime,SPACE(23))
[此贴子已经被作者于2022-6-24 14:58编辑过]