CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2007
    Location
    Pune, INDIA
    Posts
    128

    Question How to jump directly to the MFT of a file

    Hi all,

    I am having a problem to jump over to the MFT(metadata file)of a file. Suppose I have a D: drive (NTFS) and I have a file "Mydata.doc" in it. Now i need to go to its MFT. say suppose i have to change the creation date and time of that file.
    Is there any API which can return me the offset or the sector number of its MFT by providing the handle of that file?



    Thanks in advance.

  2. #2
    Join Date
    Jul 2005
    Posts
    266

    Re: How to jump directly to the MFT of a file

    I am not sure if there is such an API however if you want to change the file's creating time you can always use GetFileInformationByHandle combined with
    SetFileInformationByHandle
    Last edited by kolkoo; April 10th, 2009 at 04:40 AM.

  3. #3
    Join Date
    Jul 2007
    Location
    Pune, INDIA
    Posts
    128

    Re: How to jump directly to the MFT of a file

    thanks dear, but i have to jump to the MFT of that file. Is there any technique through which I can get the MFT offset of a particular file? there must be some way. that location is basically known as file record of a file.
    How can I reach there?


    thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured