Important: The information in this document is obsolete and should not be used for new development.
PBHOpenDeny
You can use thePBHOpenDenyfunction to open a file's data fork using the access
deny modes.
FUNCTION PBHOpenDeny (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.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. --> ioNamePtrStringPtrA pointer to a pathname. --> ioVRefNumIntegerA volume specification. <-- ioRefNumIntegerThe file reference number. --> ioDenyModesIntegerAccess rights data. --> ioDirIDLongIntThe directory ID. DESCRIPTION
ThePBHOpenDenyfunction opens a file's data fork with specific access rights specified in theioDenyModesfield. The file reference number is returned inioRefNum.The result code
opWrErris 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 forPBHOpenDenyare
Trap macro Selector _HFSDispatch $0038 RESULT CODES