Re: media may have changed error
- From: "anton bassov" <soviet_bloke@xxxxxxxxxxx>
- Date: 17 Oct 2006 01:20:23 -0700
David,
But what can you achieve by this call??? If you do it this way, the
system will send an error code to the calling process, rather than
displaying MsgBox - it is not going to affect the results
DeviceIoControl returns, don't you think????
Anton Bassov
David J. Craig wrote:
How about SetErrorMode(SEM_FAILCRITICALERRORS)?
"Chris Ellis" <chriseAtStompsoftDotCom> wrote in message
news:e2YwL7V8GHA.3928@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm trying to simply get the drive geometry of a floppy if there is one
in the floppy drive. To accomplish this, I am calling DeviceIoControl
with the IOCTL_DISK_GET_DRIVE_GEOMETRY command. The funny problem that
I'm experiencing is... after a reboot, it will work once when I put a
floppy disk in the drive. After ejecting the disk and then re-inserting
it into the drive, the call to DeviceIoControl returns error 0x00000456
("The media in the drive may have changed.") So it would appear that some
sort of global flag (or process-wide flag) is being set to let me know
that the disk in the floppy drive may not be the same as... ?? whatever
may have previously been in there. It would seem that there must be some
control code to clear this flag and let the system know that I don't care
whether it has changed or not...
Any help is greatly appreciated!
Chris
.
- Follow-Ups:
- Re: media may have changed error
- From: David J. Craig
- Re: media may have changed error
- References:
- media may have changed error
- From: Chris Ellis
- Re: media may have changed error
- From: David J. Craig
- media may have changed error
- Prev by Date: Re: media may have changed error
- Next by Date: Re: Which is the right newsgroup for networking and sockets programming related questions?
- Previous by thread: Re: media may have changed error
- Next by thread: Re: media may have changed error
- Index(es):
Relevant Pages
|