home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14833 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.8 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!acsu.buffalo.edu!triantos
  2. From: triantos@acsu.buffalo.edu (Nick B Triantos)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Help needed with low level File Manager calls
  5. Message-ID: <BtwMoK.BJE@acsu.buffalo.edu>
  6. Date: 1 Sep 92 15:52:57 GMT
  7. Sender: nntp@acsu.buffalo.edu
  8. Distribution: comp
  9. Organization: The University at Buffalo
  10. Lines: 42
  11. Originator: triantos@lictor.acsu.buffalo.edu
  12. Nntp-Posting-Host: lictor.acsu.buffalo.edu
  13.  
  14. Hi.
  15.  
  16. I'm kinda new to programming on the Mac, so please bear with me.  I'm trying to
  17. figure out PBMountVol.  In a nutshell, my code defines
  18.  
  19.     VolumeParam myParmBlk;
  20.  
  21. then makes the following calls:
  22.  
  23.     myParmBlk.ioVRefNum=i;
  24.     gMyErr = PBMountVol((ParmBlkPtr)&myParmBlk);
  25.  
  26. as i goes from 0 to 7.  With i=0, I get gMyErr==paramErr, which is expected.
  27. At i=1, I get gMyErr==-65, which is not listed as a File Manager error code in
  28. IM-II, page 138, or IM-VI, page 25-62.  On my computer, a SyQuest 44MB
  29. cartridge drive resides at SCSI ID 1, and is mounted when I run this through
  30. the debugger.  For i from 2 to 6, I got gMyErr==nsDrvErr, which makes sense
  31. since I don't have any drives at those addresses.  I should mention, by the
  32. way, that myParmBlk.ioResult is always the same as gMyErr.
  33.  
  34. Now my questions.
  35.  
  36. 1.  Am I correct in assuming that ioVRefNum should be set to the SCSI id of the
  37. drive I'm trying to mount?
  38.  
  39. 2.  What is result code -65?
  40.  
  41. 3.  If I'm correct in Q. 1, shouldn't I get a result code of -55 (volOnLinErr)
  42. when ioVRefNum=1?
  43.  
  44. Many thanks for any help,
  45.  
  46. -Nick
  47.  
  48.  
  49.  
  50.  
  51. --
  52. Nick Triantos    internet: triantos@acsu.buffalo.edu
  53.                  AOL:      Triantos
  54. "Scientists tell us that the fastest animal on earth, with a top speed of
  55. 120 ft/sec, is a cow that has been dropped out of a helicopter." - Dave Barry
  56.