Important: The information in this document is obsolete and should not be used for new development.
PBHOpenRFDeny
You can use thePBHOpenRFDeny
function to open a file's resource fork using the access deny modes.
FUNCTION PBHOpenRFDeny (paramBlock: HParmBlkPtr; async: Boolean): OSErr;
paramBlock
- A pointer to a basic HFS 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. --> ioNamePtr
StringPtr
A pointer to a pathname. --> ioVRefNum
Integer
A volume specification. <-- ioRefNum
Integer
The file reference number. --> ioDenyModes
Integer
Access rights data. --> ioDirID
LongInt
The directory ID. DESCRIPTION
ThePBHOpenRFDeny
function opens a file's resource fork with specific access rights. The path reference number is returned inioRefNum
.The result code
opWrErr
is returned if you've requested write permission and you
have already opened the file for writing; in that case, the existing file reference
number is returned inioRefNum
. You should not use this reference number unless
your application originally opened the file.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBHOpenRFDeny
are
Trap macro Selector _HFSDispatch $0039 RESULT CODES