Important: The information in this document is obsolete and should not be used for new development.
DIVerify
To verify a disk you have formatted, you can use theDIVerifyfunction.
FUNCTION DIVerify (drvNum: Integer): OSErr;
drvNum- The number of the drive containing the disk to be verified.
DESCRIPTION
TheDIVerifyfunction verifies the format of the disk in the drive specified by thedrvNumparameter. It reads each bit from the disk and returns a result code indicating whether all bits were read successfully or not. TheDIVerifyfunction does not affect the contents of the disk itself.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forDIVerifyare
Trap macro Selector _Pack2 $0008 SPECIAL CONSIDERATIONS
You should not callDIVerifyat 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