Displaying 2 results from an estimated 2 matches for "aa366789".
Did you mean:
aa366778
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 help...
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