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 ...

I don't understand why Microsoft is doing so many half-finished things, it's very disgusting

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326994423&siteId=291194637