Important: The information in this document is obsolete and should not be used for new development.
CloseComponent
TheCloseComponent
function terminates your application's access to the services provided by a component. Your application specifies the connection to be closed with the component instance returned by theOpenComponent
orOpenDefaultComponent
function.
FUNCTION CloseComponent (aComponentInstance: ComponentInstance): OSErr;
aComponentInstance
- A component instance that specifies the connection to close. Your application obtains the component instance from the
OpenComponent
function or theOpenDefaultComponent
function.DESCRIPTION
TheCloseComponent
function closes only a single connection. If your application has several connections to a single component, you must call theCloseComponent
function once for each connection.
RESULT CODES
noErr 0 No error invalidComponentID -3000 No component with this component identifier SEE ALSO
For a description of theOpenDefaultComponent
andOpenComponent
functions, see page 6-42 and page 6-44, respectively.