FSForkIOParam |
||
| Mac OS X header: | CoreServices/CoreServices.h | |
| Mac OS 9 header: | Files.h | |
Defines a parameter block used by low-level HFS Plus fork I/O functions.
struct FSForkIOParam {
QElemPtr qLink;
SInt16 qType;
SInt16 ioTrap;
Ptr ioCmdAddr;
IOCompletionUPP ioCompletion;
volatile OSErr ioResult;
void *reserved1;
SInt16 reserved2;
SInt16 forkRefNum;
UInt8 reserved3;
SInt8 permissions;
const FSRef *ref;
Ptr buffer;
UInt32 requestCount;
UInt32 actualCount;
UInt16 positionMode;
SInt64 positionOffset;
FSAllocationFlags allocationFlags;
UInt64 allocationAmount;
UniCharCount forkNameLength;
const UniChar *forkName;
CatPositionRec forkIterator;
HFSUniStr255 *outForkName;
};
typedef FSForkIOParam* FSForkIOParamPtr;
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.)
The queue type. This field is used internally by the File Manager.
The trap number of the function that was called. This field is used internally by the File Manager.
The address of the function that was called. This field is used internally by the File Manager.
A universal procedure pointer to a completion routine to be executed at the end of an asynchronous call. It should be 0 for asynchronous calls with no completion routine and is automatically set to 0 for all synchronous calls. See
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; its set to a positive number when the call is made and receives the actual result code when the call is completed.
Reserved.
Reserved.
A reference number for a fork.
Reserved.
The desired type of access to the specified fork.
An FSRef for the file or directory to open.
A pointer to a data buffer.
The number of bytes requested for the given operation.
The actual number of bytes completed by the call.
A constant indicating the base location within the file for the start of the operation. See
The offset from the base location specified in the positionMode offset for the start of the operation.
A set of bit flags used by the
For the
The length of the file or directory name passed in the forkName field, in Unicode characters.
A pointer to the file or directorys Unicode name. This field is an input parameter; functions which return the file or directory name in the parameter block use the outForkName field.
A fork iterator.
A pointer to the file or directorys Unicode name; this is an output parameter. For functions which require the file or directory name as an input argument, you should pass a pointer to that name in the forkName field and pass the length of the name in the forkNameLength field.
© 2001 Apple Computer, Inc. (Last Updated July 17, 2001)