ntfs-mft

Get file info from NTFS-MFT reference number

戏子无情 提交于 2019-12-01 17:44:38
In my C# application, I already have a way to examine the file system but I would like to take advantage of reading from the Master File Table (MFT) because it is so much faster. I understand that 1) it is a proprietary specification and therefore subject to change without notice, and 2) it is only accessible when the application is running under administrative privileges. I managed to read the Master File Table via this code . From the MFT query, I get a file name and a so-called file reference number. What I can't find is how to transition to a .NET FileInfo object, or even to a Windows API

Get file info from NTFS-MFT reference number

坚强是说给别人听的谎言 提交于 2019-12-01 17:19:47
问题 In my C# application, I already have a way to examine the file system but I would like to take advantage of reading from the Master File Table (MFT) because it is so much faster. I understand that 1) it is a proprietary specification and therefore subject to change without notice, and 2) it is only accessible when the application is running under administrative privileges. I managed to read the Master File Table via this code. From the MFT query, I get a file name and a so-called file

Implement Change Journal in Delphi

◇◆丶佛笑我妖孽 提交于 2019-11-30 15:20:48
I'm seeking to use Change Journal instead of ReadDirectoryChangesW to track changes in my delphi XE2 application (as for why: ReadDirectoryChangesW is not that reliable ) The closest I could find in delphi/pascal is something called Delphi MFT/Journal helpers , it contains two pascal units: uMFT.pas and uDevNotification.pas . The code above deal with MFT (very nicely actually), but nothing as far change journal goes. I also found this C# code , which seems to do what I want, only it's in C# My question is: anyone knows a Delphi XE2 code (or how to convert the C# code) to interact with and/or

Finding a set of file names quickly on NTFS volumes, ideally via its MFT

a 夏天 提交于 2019-11-28 09:29:01
I am in the middle of writing a tool that finds lost files of an iTunes library, for both Mac and Windows. On the Mac, I can quickly find files by naming using the wonderful "CatalogSearch" function. On Windows, however, there seems to be no OS API for searching by file name (or is there?). After some googling, I learned that there are tools (like TFind , Everything ) that read the NTFS directory directly and scan it to find files by name. I would like to do the same, but without having to start from scratch (although I've written quite a few disk tools in the past, I've never had the energy

How do we access MFT through C#

大兔子大兔子 提交于 2019-11-28 04:01:30
I need to access Windows MFT(Master File Table) using C# in my .net application. I have googled about this and couldn't find any good results. I have been searching for the information from the past 2 days but have been unable to find any information on the same. I am not looking for exact code to do the same, I am just looking for some information which can get me started. The only thing I have been able to figure out is that I have to use P/Invoke. I want to know the functions I would be using to have access to MFT. If you are able to provide some code sample then that would be great. First,

How do we access MFT through C#

梦想的初衷 提交于 2019-11-27 05:14:09
问题 I need to access Windows MFT(Master File Table) using C# in my .net application. I have googled about this and couldn't find any good results. I have been searching for the information from the past 2 days but have been unable to find any information on the same. I am not looking for exact code to do the same, I am just looking for some information which can get me started. The only thing I have been able to figure out is that I have to use P/Invoke. I want to know the functions I would be