The RegisterComponentResource function makes a component available for use by applications (or other clients). Once the Component Manager has registered a component, applications can find and open the component using the standard Component Manager routines. You provide information identifying the component and specifying its capabilities. The Component Manager returns a component identifier that uniquely identifies the component to the system.
The UnregisterComponent function removes a component from the Component ManagerÕs registration list. Most components are registered at startup and remain registered until the computer is shut down. However, you may want to provide some services temporarily. In that case you dispose of the component that provides the temporary service by using this function. Returns zero on failure.
The FindNextComponent function returns the component identifier of a component that meets the search criteria. FindNextComponent returns a function result of 0 when there are no more matching components.
The CountComponents function returns a long integer containing the number of components that meet the specified search criteria.
The GetComponentInfo function returns information about the specified component.
($type, $subtype, $manufacturer, $flags, $mask, $name, $info) = GetComponentInfo($Component);
The GetComponentListModSeed function allows you to determine if the list of registered components has changed. This function returns the value of the component registration seed number.
The OpenComponent function allows your application to gain access to the services provided by a component. Your application must open a component before it can call any component functions. You specify the component with a component identifier that your application previously obtained from the FindNextComponent function. Returns ComponentInstance.
The CloseComponent 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 the OpenComponent() or OpenDefaultComponent() function. Returns zero on failure.
The GetComponentInstanceError function returns the last error generated by a specific connection to a component. Returns zero on failure.
The ComponentFunctionImplemented function allows you to determine whether a component supports a specified request. Your application can use this function to determine a componentÕs capabilities. Returns 1 if supported.
The GetComponentVersion function returns a componentÕs version number as a coded integer.
The SetDefaultComponent function allows your component to change the search order for registered components. You specify a component that is to be placed at the front of the search chain, along with control information that governs the reordering operation. The order of the search chain influences which component the Component Manager selects in response to an applicationÕs use of the OpenDefaultComponent() and FindNextComponent() functions. Returns zero on failure.
The OpenDefaultComponent function allows your application to gain access to the services provided by a component. Your application must open a component before it can call any component functions. You specify the component type and subtype values of the component to open. The Component Manager searches for a component that meets those criteria. If you want to exert more control over the selection process, you can use the FindNextComponent() and OpenComponent() functions. Returns ComponentInstance.
The RegisterComponentResourceFile function registers all component resources in the given resource file according to the flags specified in the global parameter. Returns an integer value.