DIVerify
To verify a disk you have formatted, you can use the DIVerify function.
FUNCTION DIVerify (drvNum: Integer): OSErr;
drvNum
- The number of the drive containing the disk to be verified.
DESCRIPTION
The DIVerify function verifies the format of the disk in the drive specified by the drvNum parameter. It reads each bit from the disk and returns a result code indicating whether all bits were read successfully or not. The DIVerify function does not affect the contents of the disk itself.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for DIVerify are
| Trap macro | Selector |
| _Pack2 | $0008 |
SPECIAL CONSIDERATIONS
You should not call DIVerify at interrupt time.
RESULT CODES
| noErr | 0 | No error |
| lastDskErr | -64 | Last of the range of low-level disk errors |
| ... | | |
| firstDskErr | -84 | First of the range of low-level disk errors |