search for: file_flag_backup_semantics

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

2004 Nov 11
2
File.open on a directory?
Hi all, Windows 2000 Ruby 1.8.2 RC9 Is it possible to call File.open on a directory in Windows? I always get Errno::EACCES, even though there are no special settings on the directories I''ve tried and I have full access. Dan
2006 May 26
13
win32-dir, unicode
Hi, I''ve got a preliminary version of the pure Ruby version of win32-dir in CVS. However, I was hoping to work out the Unicode issue. Run this: from = "C:\\test" to = "?????" Dir.mkdir(from) unless File.exists?(from) Dir.create_junction(to, from) It works, but my explorer (and dos) window shows the name garbled. I don''t think it''s a font
2005 Jan 06
0
Some thoughts on win32-changenotify
...r am I exactly sure what to pass as a buffer in the first place). Here''s the basic approach. // 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,...
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 May 11
0
Wine release 0.9.37
...emove a stray back slash. riched20: Add the tests for EM_SETTEXTEX/EM_GETTEXTEX in addition to WM_SETTEXT/WM_GETTEXT, make them pass under Wine. gdi32: Handle errors in WineEngAddFontResourceEx. gdi32: AddFontResource should return a number of added font faces. advapi32: Add FILE_FLAG_BACKUP_SEMANTICS to the flags passed to CreateFileW to be able to get security information for directories as well as for files. user32: Windows doesn't send the initialization messages to a dialog if a passed in dlgProc is NULL. Emmanuel Maillard (4): winecoreaudio: Handle non System Exclusive mes...