File Monitor on WinRT

http://lunarfrog.com/blog/filesystem-change-notifications

Use CreateFileQueryWithOptions to add file monitor(win32 use file watcher).

* By default it FolderDepth is Shallow(root folder only), Deep will observe sub folder

* Only notify file changes, but unable to detact the changed file, nor even then content changed.

* Will get notification after resume from background

* Can't get any notification if App is killed.

* GetFileAync in notification event will only get all files in the folder, not altered files.

So it's really a chicken‘ ribs ...

不明白微软为什么要搞这么多半成品的东西,非常恶心

猜你喜欢

转载自shappy1978.iteye.com/blog/2281714