There's no way to abort TestUnitReady(...) code however you have a choice of using TestUnitReadyEx(...) variant of the call. It has extra parameter - how many seconds to wait for combination "drive + disc" becoming ready.
If it would not be enough for you - we'll consider adding "abort" functionality to at least one of this API calls (they only "ping" device with 0x00 command in a loop so it's not a very big deal to do what you want).
Please let me know what do you think - which way would be preferred for you (we recommend startin from using Ex(...) variant of API call).
betty crokker wrote:
I'm calling StarBurn_CdvdBurnerGrabber_TestUnitReady in a thread because it's extremely slow if the device isn't ready (20 seconds) which works fine except that I would like to be able to offer a "Cancel" button to the user.
I tried calling StarBurn_CdvdBurnerGrabber_Cancel in my UI (so not in the same thread that was calling StarBurn_CdvdBurnerGrabber_TestUnitReady) but that didn't seem to do anything.
Thanks!