Displaying 2 results from an estimated 2 matches for "cchangenotifyerror".
2005 Jan 06
0
Some thoughts on win32-changenotify
...// Get a handle to the directory.
hDir = CreateFile(
lpPathName,
FILE_LIST_DIRECTORY,
FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_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...
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