Yes of course. We keep handle to USB device inside StarBurn. If you're using "Safely Remove Hardware" Wizard to disconnect your hardware (proper way) - Windows would not allow you to remove USB (or any external like FireWire or maybe eSATA) burner while it's in use with StarBurn. However if you use brutal disconnect (software or manually) - we can do nothing with it. Handle would be invalidated and StarBurn would return error at the next device access.
What you say is simply undoable
Nobady would guarantee device would appear under it's name, using the same address. We just cannot recognize two say USB burners with the same names and firmware revision. So even if we'd like to rewrite all of the PnP stuff Windows has inside of the StarBurn we cannot stop at random place and just continue execution perfectly when device like you say would be plugged back.
cyust wrote:
Hello,
I am currently creating a CdvdBurnerGrabber object on process start-up and then maintaining that object over the lifetime of the process. That seems to work fine for internal devices that can't be removed while the process is running.
We will soon be testing USB-based devices which can be plugged and unplugged as the user wishes while our process is running. Can you tell me if unplugging the USB-based device while we have an open CdvdBurnerGrabber object will invalidate that object for all time (e.g. an open file handle goes bad)? Or will the CdvdBurnerGrabber just return errors while the device is unplugged, but successfully reconnect and continue as before after the device gets plugged back in? Is there a way to detect that the CdvdBurnerGrabber has gone stale due to device removal?
Thanks!
Chris