similar to: Problems with DeviceIoControl()

Displaying 20 results from an estimated 200 matches similar to: "Problems with DeviceIoControl()"

2004 Nov 06
3
Calling CreateFile on an instance of File - possible?
Hi all, I''m going over win32-file this weekend. I''m creating instance methods for setting (or unsetting) the various file attributes. So, you can do something like: f = File.open("foo.txt") f.archive = true f.hidden = true f.close This works for the basic attributes, but it requires extra work for others. Specifically, I am having trouble trying to set the
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
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
2007 Mar 19
1
DeviceIoControl
Hi All, Just getting started using Linux and very impressed. I've written a Windows app that uses various DeviceIoControl codes that as far as I can see aren't implemented in Wine. They are: IOCTL_DISK_GET_DRIVE_GEOMETRY FSCTL_LOCK_VOLUME FSCTL_DISMOUNT_VOLUME IOCTL_DISK_GET_PARTITION_INFO IOCTL_STORAGE_GET_DEVICE_NUMBER IOCTL_DISK_GET_DRIVE_LAYOUT Anybody have any ideas how I can get
2007 Mar 19
1
DeviceIoControl support
Hi All, Just getting into using Linux and very impressed. I've written a Windows app that uses various DeviceIoControl codes that as far as I can see aren't implemented in Wine. They are: IOCTL_DISK_GET_DRIVE_GEOMETRY FSCTL_LOCK_VOLUME FSCTL_DISMOUNT_VOLUME IOCTL_DISK_GET_PARTITION_INFO IOCTL_STORAGE_GET_DEVICE_NUMBER IOCTL_DISK_GET_DRIVE_LAYOUT Anybody have any ideas how I can get the
2008 May 06
4
DeviceIoControl + IOCTL_DISK_GET_DRIVE_GEOMETRY problem
Hi all, Ok, what am I doing wrong here? require ''windows/device_io'' require ''windows/handle'' require ''windows/error'' include Windows::DeviceIO include Windows::Handle include Windows::Error fh = File.open(''test.txt'') # Assume you have this handle = get_osfhandle(fh.fileno) if handle == INVALID_HANDLE_VALUE puts
2017 Feb 15
0
(DeviceIoControl, FSCTL_SET_SPARSE)
On Tue, 14 Feb 2017 23:16:22 -0800, brian lamb via samba wrote: > Thanks for your response. > > The Error message is for e.g.: > > Cannot write file attributes of "\\MYHOST\backup\sparse\My Family Tree 6.0.zip.ffs_tmp". > Error Code 1: Incorrect function. (DeviceIoControl, FSCTL_SET_SPARSE) Hmm, that seems to indicate that the initial fsctl request is failing.
2004 Nov 08
0
Re: Problems with DeviceIoControl
Hi all, >You have missed & before inBuf. D''oh! Odd that I didn''t get a warning. >Here is my modified version: It worked, but it seems to eliminate the file''s contents in the process. I''ve tried various flags with no luck. Any ideas? Regards, Dan
2004 Nov 08
0
Re: Problems with DeviceIoControl
Hi, >It worked, but it seems to eliminate the file''s contents in the process. >I''ve tried various flags with no luck. What do you mean by that? Here is my sample code and it worked fine. require ''win32/file'' f = File.open("c:/test","a") f.puts "test" f.compressed = true f.close Regards, Park Heesob --MIME
2004 Nov 09
0
Re: Problems with DeviceIoControl
>What do you mean by that? >Here is my sample code and it worked fine. Whoops, never mind. User error. ;) Thanks much. Dan
2001 Mar 19
1
fixme:win32:DeviceIoControl Unimplemented control 104 for VxD device SECPROV
Does anyone have a clue??? P.S. You have done serious job :) i wanna say. -- Á÷éëëÝáò ÌÜíôæéïò Application Developer Eurisko A.E. ÐéíäÜñïõ 9 106 71 ÁèÞíá Ôçë: +301 3633362 Öáî: +301 3633074 e-mail: achilleas.mantzios@eurisko.gr
2017 Feb 14
0
(DeviceIoControl, FSCTL_SET_SPARSE)
Hi Brian, On Mon, 13 Feb 2017 19:16:13 -0800, brian lamb via samba wrote: > > > Im having an issue with what I believe might be pinned down to a need for a > proper samba configuration. Which version of Samba are you using? > The problem: sparse writes (not sure which, either write sparse files to a > system that doesn't support them, or vice versa) What doesn't
2017 Feb 16
0
(DeviceIoControl, FSCTL_SET_SPARSE)
Hi Brian, On Thu, 16 Feb 2017 01:20:46 -0800, brian lamb via samba wrote: > Configured as you mention, and prior with the other tweaks I had in the first place, Im getting the same results, which is "FSUTIL utility requires a Local NTFS Volume", and mapping it. Hmm, this works fine for me against a Samba 4.4.2 Btrfs backed Samba share. smb.conf: [global] ... store dos
2017 Feb 16
0
(DeviceIoControl, FSCTL_SET_SPARSE)
On Thu, 16 Feb 2017 01:54:24 -0800 brian lamb via samba <samba at lists.samba.org> wrote: > Hi Rowland, > > I see this in the ZFS props, if that’s related, you might be > referring to something in ext3 that im not aware of at the moment. > > pool/myshare aclinherit > restricted default > pool/myshare
2017 Feb 16
2
(DeviceIoControl, FSCTL_SET_SPARSE)
Hi Rowland, I see this in the ZFS props, if that’s related, you might be referring to something in ext3 that im not aware of at the moment. pool/myshare aclinherit restricted default pool/myshare acltype off default So, if you heard that I was going to use
2017 Feb 15
3
(DeviceIoControl, FSCTL_SET_SPARSE)
To whomever reads this, This post I accidentally sent to david himself, I am now sending it to the group. It will be out of order, and includes the strace. Regards Brian My apologies for any inconvenience. -------------- Hi David, Thanks for your response. The Error message is for e.g.: Cannot write file attributes of "\\MYHOST\backup\sparse\My Family Tree 6.0.zip.ffs_tmp".
2017 Feb 14
3
(DeviceIoControl, FSCTL_SET_SPARSE)
Im having an issue with what I believe might be pinned down to a need for a proper samba configuration. The problem: sparse writes (not sure which, either write sparse files to a system that doesn't support them, or vice versa) The system: Zfs-on-linux, samba share Accessing system which is erroring: Win7x64_ult, freefilesync Error message NOTHING I have done to it is
2017 Feb 22
1
(DeviceIoControl, FSCTL_SET_SPARSE)
For some reason It's not erroring now, I will look into it more, but I suspect it鈥檚 the settings, the last thing mentioned David > [globa]l section is fine, as long as it's not also set in the share section. So, yeah, that may have fixed im for the time being not getting the sparse errors, for the first time in 4 months, however, there is a couple other problems, so hopefully they
2017 Feb 16
4
(DeviceIoControl, FSCTL_SET_SPARSE)
Hi David, Configured as you mention, and prior with the other tweaks I had in the first place, Im getting the same results, which is "FSUTIL utility requires a Local NTFS Volume", and mapping it. I then went to contig, `contig -n X:\share\sparesefile 0`, as well as a few other size. Maybe im using it wrong, but some testing on contig has only "Access is denied" when I try
2005 Jan 06
0
Some thoughts on win32-changenotify
Hi all, As things stand now, you can do something like this with win32-changenotify: require "win32/changenotify" include Win32 filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME | ChangeNotify::LAST_WRITE cn = ChangeNotify.new("c:\\",false,filter){ puts "Something changed" } cn.wait You can pass a block that''s executed when a change occurs, but