Important: The information in this document is obsolete and should not be used for new development.
PBGetEOF
You can use thePBGetEOF
function to determine the current logical end-of-file of an open file.
FUNCTION PBGetEOF (paramBlock: ParmBlkPtr; async: Boolean): OSErr;
paramBlock
- A pointer to a basic File Manager parameter block.
async
- A Boolean value that specifies asynchronous (
TRUE
) or synchronous (FALSE
) execution.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioRefNum
Integer
A file reference number. <-- ioMisc
Ptr
The logical end-of-file. DESCRIPTION
ThePBGetEOF
function returns, in theioMisc
field, the logical end-of-file of the specified file. BecauseioMisc
is of typePtr
, you'll need to coerce the value to typeLongInt
to interpret the value correctly.ASSEMBLY-LANGUAGE INFORMATION
The trap macro forPBGetEOF
is_GetEOF
.RESULT CODES
noErr 0 No error ioErr -36 I/O error fnOpnErr -38 File not open rfNumErr -51 Bad reference number afpAccessDenied -5000 User does not have the correct access to the file