home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!rutgers!ub!acsu.buffalo.edu!triantos
- From: triantos@acsu.buffalo.edu (Nick B Triantos)
- Newsgroups: comp.sys.mac.programmer
- Subject: Help needed with low level File Manager calls
- Message-ID: <BtwMoK.BJE@acsu.buffalo.edu>
- Date: 1 Sep 92 15:52:57 GMT
- Sender: nntp@acsu.buffalo.edu
- Distribution: comp
- Organization: The University at Buffalo
- Lines: 42
- Originator: triantos@lictor.acsu.buffalo.edu
- Nntp-Posting-Host: lictor.acsu.buffalo.edu
-
- Hi.
-
- I'm kinda new to programming on the Mac, so please bear with me. I'm trying to
- figure out PBMountVol. In a nutshell, my code defines
-
- VolumeParam myParmBlk;
-
- then makes the following calls:
-
- myParmBlk.ioVRefNum=i;
- gMyErr = PBMountVol((ParmBlkPtr)&myParmBlk);
-
- as i goes from 0 to 7. With i=0, I get gMyErr==paramErr, which is expected.
- At i=1, I get gMyErr==-65, which is not listed as a File Manager error code in
- IM-II, page 138, or IM-VI, page 25-62. On my computer, a SyQuest 44MB
- cartridge drive resides at SCSI ID 1, and is mounted when I run this through
- the debugger. For i from 2 to 6, I got gMyErr==nsDrvErr, which makes sense
- since I don't have any drives at those addresses. I should mention, by the
- way, that myParmBlk.ioResult is always the same as gMyErr.
-
- Now my questions.
-
- 1. Am I correct in assuming that ioVRefNum should be set to the SCSI id of the
- drive I'm trying to mount?
-
- 2. What is result code -65?
-
- 3. If I'm correct in Q. 1, shouldn't I get a result code of -55 (volOnLinErr)
- when ioVRefNum=1?
-
- Many thanks for any help,
-
- -Nick
-
-
-
-
- --
- Nick Triantos internet: triantos@acsu.buffalo.edu
- AOL: Triantos
- "Scientists tell us that the fastest animal on earth, with a top speed of
- 120 ft/sec, is a cow that has been dropped out of a helicopter." - Dave Barry
-