CloseComponent
Terminates your application’s connection to a component.
Declaration
OSErr CloseComponent(ComponentInstance aComponentInstance);Parameters
- aComponentInstance:
The connection you wish to close. Your application obtains the component instance from the 1516607 Opencomponent function or the 1516523 Opendefaultcomponent function. You can use a component identifier here, but you must coerce the data type appropriately.
Return Value
A result code. See Result Codes.
Discussion
This function closes only a single connection. If your application has several connections to a single component, you must call it once for each connection.