On Friday 05 January 2007 13:03, Francois Gouget wrote:

> And RtlNtStatusToDosError() converts STATUS_NO_MEDIA_IN_DEVICE to 
> ERROR_NOT_READY. So GetLastError() cannot return 
> STATUS_NO_MEDIA_IN_DEVICE. Or did I miss something? Maybe the right 
> thing would be to check the return value of DeviceIoControl() rather 
> than GetLastError()?

Maybe it should call NtDeviceIoControlFile() instead of DeviceIoControl()?

 -Hans


Reply via email to