Profil bloqué
-
20 juil. 2004 à 21:32
Scalpweb
Messages postés1467Date d'inscriptionsamedi 13 mars 2004StatutMembreDernière intervention 5 mai 2010
-
20 juil. 2004 à 22:24
GRENIER Alain 8-)
J'ai trouvé sur le Net un petit bout de code en C mais n'y connaissant rien mais rien quelqu'un pourrait-il me le transcrire en VB ?
Ce code nous décode la RUN LIST dans le système NTFS
Avec mes sincères remerciements
Scalpweb
Messages postés1467Date d'inscriptionsamedi 13 mars 2004StatutMembreDernière intervention 5 mai 20104 20 juil. 2004 à 21:54
Alors...
Type s_Element
offset as integer
length as integer
End Type
Sub main()
dim index, V, L, LRef, R, cont as integer
dim begin as s_Element, end as s_Element
index = 0
end = runlist(index)
L = end.Off
LRef = end.Offset
V = 0
Do
R = 16 - (V Mod 16)
if R = 16 Then
msgbox "Compression unit beginning at VCN ", vbinformation, V
begin = end
End if
if end.Length >= R Then
if begin.Offset Then
if end.Offset Then
msgbox "x clusters at LCN "
else
msgbox %x unused clusters: compressed unit\n"
end if
else
msgbox "10 zeroed clusters:sparse "
end if
L = L +R
V = V + R
end.Length = end.Length - R
else
msgbox "x clusters at LCN "
V = V +end.Length
End if
if end.Length = 0 then
cont = 1
else
if (index + 1) < (slen(runlist)/len(struct s_element)) then