Re: media may have changed error



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


.



Relevant Pages

  • 5.2 RC2: Semi-deterministic gcc segfault during buildworld
    ... Please submit a full bug report, ... *** Error code 1 ... I have also tried some rudimentary write/read/md5sum tests on the disk used ... 0xE9758B7D or 'Peter Schuller ' ...
    (freebsd-questions)
  • Re: XP will not start
    ... then the disk checking will run. ... not boot to Windows, boot from the cd again, then from the start menu got to ... > I choose I get a blue screen saying windows has shut down to protect the ... > Can't get past blue screen, any idea what the error code means. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: CryptUnprotectData in DPAPI returning 0x8009000b - undocumented
    ... The "machine" flag is ignored by CryptUnprotectData. ... problem with the user password such as the user password has changed ... since the CryptProtectData function was called and the automatic recovery ... This error code is not typically returned when the "machine" flag was passed ...
    (microsoft.public.platformsdk.security)
  • Re: A6005090 on IPL
    ... Well, I brought it back up to get the error code, and if I cycle the ... display to say "13-3" and hit Enter I get 0002. ... So you do need a console. ... It could be the removal of the disk, it will depend on whether the disk ...
    (comp.sys.ibm.as400.misc)
  • Re: service pk 2 failed
    ... Error code 0x800703e7 ... You'll then have a message saying that it needs exclusive access and will run next ... How to Perform Disk Error Checking in Windows XP ... | Try to install the update again, or request help from one of the following ...
    (microsoft.public.windowsupdate)

Quantcast