search for: changenotifystruct

Displaying 5 results from an estimated 5 matches for "changenotifystruct".

2007 Aug 08
12
Some more win32-changenotify analysis
...ell. In some cases it only picked up one event. In most cases, it didn''t pick up *any* events! The C extension did much better, though the behavior was somewhat odd. Most of the time it picked up multiple notifications on some files, while missing others entirely: [#<struct Struct::ChangeNotifyStruct action="modified", file_name="test1\\test2\\File_0">] [#<struct Struct::ChangeNotifyStruct action="modified", file_name="test1\\test2\\File_4">] [#<struct Struct::ChangeNotifyStruct action="modified", file_name="test1\\test2\\Fil...
2006 Dec 21
0
Curious win32-changenotify behavior - numbers instead of names
...} } while true cn.close I then created a file called "test.txt" with gvim, and occasionally did ":w" to save it. The weird thing is that sometimes I get the actual file name, and sometimes I get a strange number. Any idea what''s causing it? #<struct Struct::ChangeNotifyStruct action="added", file_name="test.txt"> #<struct Struct::ChangeNotifyStruct action="added", file_name="4913"> #<struct Struct::ChangeNotifyStruct action="added", file_name="4913"> #<struct Struct::ChangeNotifyStruct action=...
2005 Jan 06
0
Some thoughts on win32-changenotify
...| ChangeNotify::LAST_WRITE cn = ChangeNotify.new("c:\\",false,filter){ puts "Something changed" } cn.wait You can pass a block that''s executed when a change occurs, but you can''t get any details about the change. I would like to alter that behavior so that a ChangeNotifyStruct is yielded to the block that contains two bits of information - the file or directory that was changed and what that change would be. So, that example would look something like this: filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME | ChangeNotify::LAST_WRITE cn = ChangeNotify.new("c...
2005 Jan 20
1
ChangeNotify help wanted
Hi all, I''ve checked in some code to win32-changenotify. Unfortunately, it doesn''t work right. I need some help. I don''t understand what, exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd argument, nor how to read the data back out. There''s also a WCHAR issue that needs to be worked out with regards to the FileName
2007 Aug 04
10
Need some help with pure Ruby win32-changenotify
Hi all, I know it''s deprecated, but people seem to still be using win32-changenotify, so I thought I''d see if I could make it pure Ruby. Also, I thought it would be a good opportunity to test passing a custom Win32::Event object. I''m mostly done I think, but I''m having trouble unraveling the FILE_NOTIFY_INFORMATION struct buffer. Please check out the