![]() |
GetResAttrs |
||||
Header: | Resources.h | Carbon status: | Supported | |
Gets a resources attributes.
SInt16 GetResAttrs ( Handle theResource );
A handle to the resource whose attributes you wish to retrieve. If the value of this parameter isnt a handle to a valid resource, the function does nothing, and the ResError function returns the result code resNotFound.
The resources attributes as recorded in its entry in the resource map in memory. The function returns the resources attributes in the low-order byte of the function result. Each attribute is identified by a specific bit in the low-order byte. If the bit corresponding to an attribute contains 1, then that attribute is set; if the bit contains 0, then that attribute is not set.
To change a resources attributes in the resource map in memory, use the SetResAttrs function.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)