Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 5 - Disk Initialization Manager / Disk Initialization Manager Reference
Routines / Low-Level Disk Initialization Routines


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 macroSelector
_Pack2$0008

SPECIAL CONSIDERATIONS
You should not call DIVerify at interrupt time.

RESULT CODES
noErr0No error
lastDskErr-64Last of the range of low-level disk errors
...  
firstDskErr-84First of the range of low-level disk errors

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996