Displaying 1 result from an estimated 1 matches for "findfirstchangenotif".
2005 Jan 06
0
Some thoughts on win32-changenotify
...:FILE_NAME | ChangeNotify::DIR_NAME |
ChangeNotify::LAST_WRITE
cn = ChangeNotify.new("c:\\",false,filter){ |cns|
puts "File changed: " + cns.file_name
puts "Action: " + cns.action
}
cn.wait
That means altering changenotify.c to use ReadDirectoryChangesW()
instead of FindFirstChangeNotification(). Our Ruby ChangeNotifyStruct
would contain two members, "action" and "file_name" that would be the
Action and FileName members of the FILE_NOTIFY_INFORMATION structure.
I''ve tinkered around with this but I''m having a couple issues. I can
open a dire...