Important: The information in this document is obsolete and should not be used for new development.
CloseComponent
TheCloseComponentfunction 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 theOpenComponentorOpenDefaultComponentfunction.
FUNCTION CloseComponent (aComponentInstance: ComponentInstance): OSErr;
aComponentInstance- A component instance that specifies the connection to close. Your application obtains the component instance from the
OpenComponentfunction or theOpenDefaultComponentfunction.DESCRIPTION
TheCloseComponentfunction closes only a single connection. If your application has several connections to a single component, you must call theCloseComponentfunction once for each connection.
RESULT CODES
noErr 0 No error invalidComponentID -3000 No component with this component identifier SEE ALSO
For a description of theOpenDefaultComponentandOpenComponentfunctions, see page 6-42 and page 6-44, respectively.
 
  
  
 