Does anyone have a FileSystemWatcher-like class in C++/WinAPI?

前端 未结 4 1702
一个人的身影
一个人的身影 2020-12-09 05:52

I need a .Net\'s FileSystemWatcher analog in raw C++/WinAPI. I almost started to code one myself using FindFirstChangeNotification/FindNextChangeNotification, but then it oc

4条回答
  •  既然无缘
    2020-12-09 06:20

    There is some public-domain code here. My current project uses this (inherited from previous developers). It works pretty well but we do miss notifications for reasons that are unclear (and possibly not caused by this code).

    Note that the Win32 API here has some limitations which make it difficult/impossible to avoid missing notifications. Background and alleged work-round for the API are here

提交回复
热议问题