![]() |
RegisterComponentResourceFile |
||||
Header: | Components.h | Carbon status: | Supported | |
Registers all component resources in the given resource file.
SInt32 RegisterComponentResourceFile ( SInt16 resRefNum, SInt16 global );
The reference number of the resource file containing the components to register.
A set of flags that control the scope of the registration of the components in the resource file. See
The number of components registered, if all components in the specified resource file are successfully registered. If one or more of the components in the resource file could not be registered, or if the specified file reference number is invalid, a negative function result.
Before a component can be used by an application, the component must be registered with the Component Manager. The Component Manager automatically registers component resources stored in files with file types of 'thng' that are stored in the Extensions folder. For a description of the format and content of component resources, see Resources.
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)