search for: cfileerror

Displaying 2 results from an estimated 2 matches for "cfileerror".

Did you mean: fileerror
2004 Nov 21
3
win32-file, overlapped added
Hi all, I''ve got overlapped and offset support in both nread and nwrite. The only thing left before I want to release this (as 0.4.0) is to get NO_BUFFERING to work. Unfortunately, I can''t get it to work. Park, I looked at that site you sent (and borrowed some code from it), but I don''t see anything special happening for NO_BUFFERING. I thought it required
2004 Nov 07
2
Problems with DeviceIoControl()
...t must be true or false"); } if(rbBool == Qfalse){ inBuf = COMPRESSION_FORMAT_NONE; } fn = NUM2INT(rb_funcall(self,rb_intern("fileno"),0,0)); h = (HANDLE)_get_osfhandle(fn); // Get HANDLE based on fileno if(h == INVALID_HANDLE_VALUE){ rb_raise(cFileError,ErrorDescription(GetLastError())); } rv = DeviceIoControl( h, FSCTL_SET_COMPRESSION, (LPVOID)inBuf, sizeof(inBuf), NULL, 0, &dwBytesReturned, NULL ); if(!rv){ rb_raise(cFileError,ErrorDescription(GetLastError())); } r...