Displaying 5 results from an estimated 5 matches for "ioctl_disk_get_drive_geometry".
2008 May 06
4
DeviceIoControl + IOCTL_DISK_GET_DRIVE_GEOMETRY problem
...st.txt'') # Assume you have this
handle = get_osfhandle(fh.fileno)
if handle == INVALID_HANDLE_VALUE
puts "get_osfhandle failed"
fh.close
exit
end
buf = 0.chr * 24 # sizeof(DISK_GEOMETRY)
bytes = [0].pack(''L'')
bool = DeviceIoControl(
handle,
IOCTL_DISK_GET_DRIVE_GEOMETRY(), # 458752
nil,
0,
buf,
buf.size,
bytes,
0
)
# Fails here
unless bool
puts "DeviceIoControl failed: " + get_last_error
fh.close
exit
End
fh.close
Thanks,
Dan
PS - I''ve added several IOCTL macro methods to Windows::DeviceIO in CVS
(part of windows-...
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 the app running on Wine?
Unfortunately, I still need the code to run on Windows too.
The app only deals with disk drive devices. Is...
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 app running on Wine?
Unfortunately, I still need the code to run on Windows too.
The app only deals with disk drive devices. Is...
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
2008 Jan 11
0
Wine release 0.9.53
...8 data as input in registry files.
server: Make the registry parser more tolerant about malformed hex values.
server: Output incorrectly-terminated strings in hex format.
kernel32: Fail more gracefully in GetVolumeInformation for fake drive devices.
mountmgr.sys: Implemented IOCTL_DISK_GET_DRIVE_GEOMETRY and IOCTL_STORAGE_GET_DEVICE_NUMBER.
Spelling fixes in French man pages.
Alistair Leslie-Hughes (17):
msxml3: Return E_INVALIDARG when value is NULL.
msxml3: Implement setNamedItem.
msxml3: Implement createComment.
msxml3: Implement createAttribute.
msxml3: Add...