Displaying 20 results from an estimated 400 matches similar to: "DeviceIoControl + IOCTL_DISK_GET_DRIVE_GEOMETRY problem"
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all,
I''m trying to get the allocation size of a file via a file handle
(rather than its name). The example below works for FileNameInformation
but I can''t get it to work as expected for FileStandardInformation.
Here''s some sample code:
# query_test.rb
require ''windows/handle''
require ''windows/error''
include Windows::Handle
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
2006 May 26
13
win32-dir, unicode
Hi,
I''ve got a preliminary version of the pure Ruby version of win32-dir in
CVS. However, I was hoping to work out the Unicode issue. Run this:
from = "C:\\test"
to = "?????"
Dir.mkdir(from) unless File.exists?(from)
Dir.create_junction(to, from)
It works, but my explorer (and dos) window shows the name garbled. I
don''t think it''s a font
2006 Nov 21
3
Fw: re. win32-process
Hi all,
Any ideas for the question below? I know how to do this in theory - make the ''inherit'' flag true, and set the ''stdout'' and ''stderr'' startf_flags hash options to something in the startup_info hash, but I wasn''t sure how to do this in practice.
It would be nice if the answer could be something like this:
require
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");
}
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
2008 Nov 22
2
GetFinalPathNameByHandle for XP and earlier
Hi all,
How''s this look? I based it on
http://msdn.microsoft.com/en-us/library/aa366789(VS.85).aspx.
I''m undecided as to when I should raise an error versus when I should just let
it fall through, but this is how it is for now.
You''ll need the latest windows-pr from CVS, btw.
Regards,
Dan
PS - Where should I put it? In Windows::File directly? In a separate helper
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
2006 Mar 25
1
Help with File.set_permissions port
I''ve got a (broken) version of File.set_permissions in CVS, and I need
some help finishing it off please.
Heesob, can you take a look?
Thanks,
Dan
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
2001 Apr 10
5
[Newbie] How to get IE5.0 run
I try to get IE 5.0 run under wine. All I understood is that I have to
use a native installed IE, which I copied FROM Win98SE under VMWare to my
$HOME/c/Program\ Files/ Directory. It didn't work, so I copied the
native windows/system directory, too.
This didn't work, even when I'm starting with this switches: wine -dll
shell,shell32,commctrl,comctl32=n IEXPLORE.EXE
I get this error