search for: dwbytesreturned

Displaying 3 results from an estimated 3 matches for "dwbytesreturned".

2004 Nov 07
2
Problems with DeviceIoControl()
Hi all, Thanks to Wayne and Park, I''ve got something like this now: static VALUE file_set_compressed(VALUE self, VALUE rbBool){ HANDLE h; BOOL rv; DWORD dwBytesReturned; int fn; USHORT inBuf = COMPRESSION_FORMAT_DEFAULT; if((rbBool != Qtrue) && (rbBool != Qfalse)){ rb_raise(rb_eTypeError,"Argument must be true or false"); } if(rbBool == Qfalse){ inBuf = COMPRESSION_FORMAT_NONE; } fn = NUM2INT(rb_funcall...
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
...G, 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