search for: dwattr

Displaying 1 result from an estimated 1 matches for "dwattr".

Did you mean: dnattr
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...; 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)); h = Create...