Pocket

ここ数回のリリースはファイルの自動更新についてです。
このあたりはSHChangeNotifyRegisterというAPIを使用していますが、動作がぶれまくるので新しい動作を見つけるたびに機能修正しています。

なぜ動作がぶれまくるかというと、

For performance reasons, multiple notifications can be combined into a single notification. For example, if a large number of SHCNE_UPDATEITEM notifications are generated for files in the same folder, they can be joined into a single SHCNE_UPDATEDIR notification.

と書かれているように、パフォーマンス維持のためにいくつかの動作をまとめて一つの通知にしてしまうからです。
複数のSHCNE_UPDATEITEMがひとつのSHCNE_UPDATEDIRという通知に変わったり、SHCNE_CREATEとSHCNE_UPDATEITEMがまとめてSHCNE_UPDATEITEMで通知されたりと…

なので今後もしばらくこの関係で更新がかかる可能性があります。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.