Important: The information in this document is obsolete and should not be used for new development.
Opening and Closing Components
TheOpenDefaultComponent
,OpenComponent
, andCloseComponent
functions 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
OpenDefaultComponent
function to open a component of a specified component type and subtype. You do not have to supply a component description record or call theFindNextComponent
function to use this function.You use the
OpenComponent
function 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 theFindNextComponent
function. (If your application registers a component, it can also obtain a component identifier from theRegisterComponent
orRegisterComponentResource
function.)Once you are finished using a component, use the
CloseComponent
function to release the component.
Subtopics
- OpenDefaultComponent
- OpenComponent
- CloseComponent