Displaying 2 results from an estimated 2 matches for "bwatchsubtree".
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
2005 Jan 06
0
Some thoughts on win32-changenotify
...ILE_SHARE_DELETE,
NULL,
OPEN_EXISTING,
FILE_FLAG_BACKUP_SEMANTICS,
NULL
);
if(hDir == INVALID_HANDLE_VALUE) {
rb_raise(cChangeNotifyError,ErrorDescription(GetLastError()));
}
if(!ReadDirectoryChangesW(
hDir,
Buf,
sizeof(Buf),
bWatchSubtree,
dwNotifyFilter,
&dwBytesReturned,
NULL,
NULL
)){
rb_raise(cChangeNotifyError,ErrorDescription(GetLastError()));
}
So, the question is, what exactly should "Buf" be and how do I read a
single record back out of it?
Any takers?
Regards,
Dan