Displaying 4 results from an estimated 4 matches for "file_all_access".
2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
...true) && (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 = CreateFile(
(LPCTSTR)StringValuePtr(rbPath),
FILE_ALL_ACCESS,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
dwAttr,
NULL
);
if(h == INVALID_HANDLE_VALUE){
printf("Error opening file: %s\n",ErrorDescription(GetLastError()));
return Qnil;
}
...
}
I''ve tried various flags for the different argu...
2004 Nov 16
0
Re: Win32, file descriptors and rb
...suggested patch of sending a second argument. It
> compiles fine, and I don''t get any warnings, but it simply doesn''t seem
> to write anything to a file when I tried.
>
> See my note on the ML for more details.
>
Use this code instead of case:
if(dwAccess & FILE_ALL_ACCESS)
args[1] = INT2FIX(O_RDWR);
else if(dwAccess & GENERIC_READ)
args[1] = INT2FIX(O_RDONLY);
else if(dwAccess & GENERIC_WRITE)
args[1] = INT2FIX(O_WRONLY);
else if(dwAccess)
args[1] = INT2FIX(0);
Regards,
Park Heesob
--MIME Multi-part separator...
2010 Mar 25
4
CreateFile \\\\.\\x: non-root
...hEcgDrive,
IOCTL_SCSI_PASS_THROUGH_DIRECT,
....
with a 'custom' scsi operation code as wrapper.
On Wine-1.1.30. under UHU linux (2.6.23.9-1) the program can open the device only if run as root. If run as plain user, CreateFile gives ERROR_ACCESS_DENIED (5).
I also tried with FILE_ALL_ACCESS, no luck.
I would appreciate any experience shared to solve this access issue!
The device has a basic filesystem with a txt file, so it is mapped under dosdevices, ok.
And an other question:
is it possible to open "\\\\.\\PHYSICALDISK2, this way no filesystem is needed, and the user is not...
2008 Mar 21
0
Wine release 0.9.58
...dd more sophisticated tests for GdipSaveImageToFile.
gdiplus: Fix test crash in GdipSaveImageToStream.
Paul Vriens (15):
shell32/tests: Make tests run again on win95 and NT.
dinput/tests: Don't treat old dinput versions as an error.
users32/tests: Win9x doesn't like FILE_ALL_ACCESS.
user32/tests: Use A-call.
ntdll/tests: ProcessImageFileName is not supported before XP.
advpack/tests: Free the library after use.
comctl32/tests: Don't use FreeLibrary with GetModuleHandle.
comctl32/tests: Free the library after use.
kernel32: Fix/change te...