aisl@ur-tut.UUCP (Larry Landry) (03/13/86)
*** REPLACE THIS LINE WITH YOUR MESSAGE *** I have been trying to figure out how the Disk Initialization Package works for a week now. I read all the documentation in Inside Mac and Mac Revealed. Everything I read seems to say: Before posting a disk inserted event, the system will try to mount the disk and place any error messages in the high order of the event message. However, even if I insert an unitialized disk the high order of the event message field is 0. Then I decided to try to intialize the disk regardless of the message reported. I used the following code (the "\PDisk 1" is to create a pascal string using Aztec C). short Drive = 1; Str255 Name = "\PDisk 1"; DIFormat (Drive); DIVerify (Drive); DIZero (Drive, *Name); all seems to go well until I get to DIZero where an error code -56 (no such drive) is returned. I tried this with previously initialized disks and non initialized disks with the same result. Does anyone know how to use these routines? If I could receive a short piece of working code, it would be most helpful. Any language will be accepted. Larry Landry University of Rochester