نوشته شده توسط
thelastphoenix
با سلام
ممنون دوست عزیز ولی این کد فقط یک سری اتربیوت در باره فایل می ده
و درباره ادرس فیزیکی یک فایل که در چه سکتور هایی هست من چیزی توش ندیدم
می شه کمی بیشتر راهناییم کنین و در باره mft کمی راهنماییم کنین
باتشکر
اگر همه ی متن رو بخونی میفهمی که همه چیز توش هست مثل USNRecord:
public USN_RECORD(IntPtr p)
{
this.RecordLength = (UInt32)Marshal.ReadInt32(p);
this.FileReferenceNumber = (UInt64)Marshal.ReadInt64(p, FR_OFFSET);
this.ParentFileReferenceNumber = (UInt64)Marshal.ReadInt64(p, PFR_OFFSET);
this.FileAttributes = (UInt32)Marshal.ReadInt32(p, FA_OFFSET);
this.FileNameLength = Marshal.ReadInt16(p, FNL_OFFSET);
this.FileNameOffset = Marshal.ReadInt16(p, FN_OFFSET);
FileName = Marshal.PtrToStringUni(new IntPtr(p.ToInt32() + this.FileNameOffset), this.FileNameLength / sizeof(char));
}