Implement Change Journal in Delphi

折月煮酒 提交于 2019-12-30 05:11:13

问题


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 query the change journal?

As I said, my goal is to replace the ReadDirectoryChangesW, so I ultimately need to interact with the change journal so that I'm notified whenever there's a change in the filesystem

来源:https://stackoverflow.com/questions/14496630/implement-change-journal-in-delphi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!