VerifyDrive
error = VerifyDrive ( CallBack ) D0 A0 ULONG VerifyDrive ( long ( *CallBack)( HDWCallbackMsg *msg ))
Verify blocks on currently opened device and give the user the opportunity to reassign bad blocks via the SCSI Reassign command.
CallBack A function to accept a HDWCallbackMsg and interact with the user.
error per rw_success_val in hdwrench.h If CallBack is NULL it returns the value no_callback_hook. If no device is open it returns the value io_device_not_open. Inform the user that this is a safe operation, it will take a long time, and he will be able to abort the operation. If the user selects abort return user_aborted else verify the drive 65535 blocks at a time until completed. If a bad block is found give the user an opportunity to reassign the bad block. If the user elects to reassign the block attempt the reassign. Inform the user of any serious errors. Abort operations if the user elects abort or if a serious enough error occurs. (That is to say one from which any continuation of the verify is undefined.)
Razor 1911