Carbon


ForeignPrivParam

Header: Files.h

struct ForeignPrivParam {
    QElemPtr qLink; 
    SInt16 qType; 
    SInt16 ioTrap; 
    Ptr ioCmdAddr; 
    IOCompletionUPP ioCompletion; 
    volatile OSErr ioResult; 
    StringPtr ioNamePtr; 
    SInt16 ioVRefNum; 
    SInt32 ioFiller21; 
    SInt32 ioFiller22; 
    Ptr ioForeignPrivBuffer; 
    SInt32 ioForeignPrivActCount; 
    SInt32 ioForeignPrivReqCount; 
    SInt32 ioFiller23; 
    SInt32 ioForeignPrivDirID; 
    SInt32 ioForeignPrivInfo1; 
    SInt32 ioForeignPrivInfo2; 
    SInt32 ioForeignPrivInfo3; 
    SInt32 ioForeignPrivInfo4;
};
typedef ForeignPrivParam ForeignPrivParamPtr;

Field descriptions

qLink

A pointer to the next entry in the file I/O queue. (This field is used internally by the File Manager to keep track of asynchronous calls awaiting execution.)

qType

The queue type. (This field is used internally by the File Manager.)

ioTrap

The trap number of the function that was called. (This field is used internally by the File Manager.)

ioCmdAddr

The address of the function that was called. (This field is used internally by the File Manager.)

ioCompletion

A pointer to a completion routine to be executed at the end of an asynchronous call. It should be NULL for asynchronous calls with no completion routine and is automatically set to NULL for all synchronous calls. See IOCompletionProcPtr for information about completion routines.

ioResult

The result code of the function. For synchronous calls, this field is the same as the result code of the function call itself. To determine when an asynchronous call has actually been completed, your application can poll this field; it’s set to a positive number when the call is made and receives the actual result code when the call is completed.

ioNamePtr

A pointer to a pathname. Whenever a function description specifies that ioNamePtr is used—whether for input, output, or both—it’s very important that you set this field to point to storage for a Str255 value (if you’re using a pathname) or to NULL (if you’re not).

ioVRefNum

A volume specification (volume reference number, working directory reference number, drive number, or 0 for default volume).

ioFiller21

Reserved.

ioFiller22

Reserved.

ioForeignPrivBuffer

A pointer to a buffer containing access-control information about the foreign file system.

ioForeignPrivActCount

The size of the buffer pointed to by the ioForeignPrivBuffer field.

ioForeignPrivReqCount

The amount of the buffer pointed to by the ioForeignPrivBuffer field that was actually used to hold data.

ioFiller23

Reserved.

ioForeignPrivDirID

The parent directory ID of the foreign file or directory.

ioForeignPrivInfo1

A long word that may contain privileges data.

ioForeignPrivInfo2

A long word that may contain privileges data.

ioForeignPrivInfo3

A long word that may contain privileges data.

ioForeignPrivInfo4

A long word that may contain privileges data.


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