Carbon


DTPBRec

Header: Files.h

The desktop database functions use the desktop parameter block, a data structure of type DTPBRec.

struct DTPBRec {
    QElemPtr qLink; 
    SInt16 qType; 
    SInt16 ioTrap; 
    Ptr ioCmdAddr; 
    IOCompletionUPP ioCompletion; 
    volatile OSErr ioResult; 
    StringPtr ioNamePtr; 
    SInt16 ioVRefNum; 
    SInt16 ioDTRefNum; 
    SInt16 ioIndex; 
    SInt32 ioTagInfo; 
    Ptr ioDTBuffer; 
    SInt32 ioDTReqCount; 
    SInt32 ioDTActCount; 
    SInt8 ioFiller1; 
    SInt8 ioIconType; 
    SInt16 ioFiller2; 
    SInt32 ioDirID; 
    OSType ioFileCreator; 
    OSType ioFileType; 
    SInt32 ioFiller3; 
    SInt32 ioDTLgLen; 
    SInt32 ioDTPyLen; 
    SInt16 ioFiller4[14]; 
    SInt32 ioAPPLParID;
};
typedef DTPBRec DTPBPtr;

Field descriptions

qLink

The next queue entry.

qType

The queue type.

ioTrap

The function trap.

ioCmdAddr

The function address.

ioCompletion

A completion function.

ioResult

A result code.

ioNamePtr

The file, directory, or volume name.

ioVRefNum

The volume reference number.

ioDTRefNum

The desktop database reference number.

ioIndex

The index into icon list.

ioTagInfo

The tag information.

ioDTBuffer

The data buffer.

ioDTReqCount

The requested length of data.

ioDTActCount

The actual length of data.

ioFiller1

Unused.

ioIconType

The icon type.

ioFiller2

Unused.

ioDirID

The parent directory ID.

ioFileCreator

The file creator.

ioFileType

The file type.

ioFiller3

Unused.

ioDTLgLen

The logical length of desktop database.

ioDTPyLen

The physical length of desktop database.

ioFiller4

Unused.

ioAPPLParID

The parent directory ID of application.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)