PBDTOpenInform
PBDTOpenInform Obtain access path and report if database was empty
#include <Files.h> Finder Interface
DTPBPtr paramBlock ; pointer to a DTPB Param Block
PBDTOpenInform performs the same function as PBDTGetPath, but it
also reports whether the desktop database was empty when it was opened.
If the desktop database was just created in response to PBDTOpenInform
(and is therefore empty), PBDTOpenInform sets the low bit in the ioTagInfo
field to 0. If the desktop database had been created before you called
PBDTOpenInform, PBDTOpenInform sets the low bit in the ioTagInfo
field to 1.
Parameter block
۬ 16 ioResult short result code
ۮ 18 ioNamePtr long volume name or full pathname
ۮ 22 ioVRefNum short volume reference number
۬ 24 ioDTRefNum short desktop database reference number
۬ 28 ioTagInfo long return flag (in low bit)
Returns: an Error code. It will be one of the following:
noErr (0) No error
ioErr (-36) I/O error
paramErr (-50) Parameter error; use PBDTGetPath
extFSErr (-58) External file system-file-system identifier is nonzero
desktopDamagedErr (-1305) The desktop database has become corrupted-the
Finder will fix this, but if your application is not
running with the Finder, use PBDTReset or
PBDTDelete