search for: rbbool

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

Did you mean: rbool
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 = COMPR...
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...;compress'' attribute. To do this requires calling CreateFile() + DeviceIoControl(). The thing is, I don''t know how to get a valid HANDLE to a instance of an already opened file. I''ve been trying something like this: static VALUE file_set_compressed(VALUE self, VALUE rbBool){ DWORD dwAttr; VALUE rbPath; HANDLE h; if((rbBool != Qtrue) && (rbBool != Qfalse)){ rb_raise(rb_eTypeError,"Argument must be true or false"); } rbPath = rb_funcall(self,rb_intern("path"),0,0); dwAttr = GetFileAttributes(StringValuePtr(rbPath...