Hi All,
Given full path of the file , can we get the MFT File record number of that file in NTFS ? , i know the other way around i,e given MFT record number we can tell which file it belongs to.
any help here is greatly appreciated.
thanks ,
Vijay
GetFileInformationByHandle will give you the file ID if that’s what you’re
asking.
-scott
–
Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com
wrote in message news:xxxxx@ntdev…
> Hi All,
>
> Given full path of the file , can we get the MFT File record number of
> that file in NTFS ? , i know the other way around i,e given MFT record
> number we can tell which file it belongs to.
>
> any help here is greatly appreciated.
>
> thanks ,
> Vijay
>
scott ,
thanks for quicky reply, i want to know the MFT record number for the file,
suppose the MFT record number for the file c:\a.txt could be 1000.
in the NTFS the MFT record number and the and the nFileIndexLow filed of BY_HANDLE_FILE_INFORMATION Structure is seems to be same. so i got my what i wanted , but is this guaranteed to be always true ?
regards,
Vijay