Important: The information in this document is obsolete and should not be used for new development.
Opening and Closing ComponentsThe
CloseComponentfunctions allow your application to gain access to and release components. Your application must open a component before it can use the services provided by that component. Similarly, your application must close the component when it is finished using the component.
You can use the
OpenDefaultComponentfunction to open a component of a specified component type and subtype. You do not have to supply a component description record or call the
FindNextComponentfunction to use this function.
You use the
OpenComponentfunction to gain access to a specified component. To use this function, your application must have previously obtained a component identifier for the desired component by using the
FindNextComponentfunction. (If your application registers a component, it can also obtain a component identifier from the
Once you are finished using a component, use the
CloseComponentfunction to release the component.