Registry Entries
OLE DB defines registry entries for providers, enumerators, and error lookup services. These entries contain the class ID of the component and its associated DLL, description, display name, and so on. There are several reasons for registering these OLE DB components:
-
Registration is required as part of being an OLE COM component, and provides a way to create an instance of an OLE object.
-
Registration provides the mechanism for the root enumerator shipped with the OLE DB component of the Data Access SDK to obtain a list of providers on the machine.
-
Registration provides the mechanism for the root enumerator to obtain a list of other enumerators. An enumerator is an OLE COM server that implements ISourcesRowset.
-
Registration provides the mechanism for the standard OLE DB error object to invoke the provider's custom error lookup service.
-
Data may be available in different formats. Registration provides a way to obtain a list of data formats and the providers that support those data formats. Data formats are created by providers, and could be provider-specific. Each provider may consider itself capable of supporting many data formats. A usage example is to group providers together and help consumers interactively decide which provider might work for them.
For more information about registry entries, see the Object Linking and Embedding Programmer's Reference, Volume 1.