Re: Enumerating OLE DB Providers

Mark Dawson <[email protected]> Mon, 18 Nov 2002 08:57:14 -0000
Newsgroups gmane.comp.windows.devel.oledb.devel
Message-ID <090ED6DFF3D5D611A81400508B8B5A3F0721DE@SKYLLA>
The best way is to use the OLEDB provider enumerator! :)

The CLSID is CLSID_OLEDB_ENUMERATOR and it exposes the standard 'OLEDB
Enumerator' interfaces.  ATLDBCLI contains a class called CEnumerator
that implements the entire functionality you need, just call Open with
no parameters on the class.

Mark
--------------------------------------------------------------
Mark Dawson ([email protected])
Software Project Leader
SRH Systems Ltd.
Lowesmoor Wharf, Worcester.
WR1 2RS. UK
+44 (0)1905 613361


-----Original Message-----
From: Christer Ljung [mailto:[email protected]]
Sent: 18 November 2002 08:49
To: [email protected]
Subject: [OLEDB_DEV] Enumerating OLE DB Providers


What's the best way to enumerate the OLE DB Providers installed on a
machine?

Is there a better way that walking the Registry, like

   HKCU\CLSID\{guid}\OLE DB Provider

looking for the "OLE DB Provider" keynames.

/Christer



__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

You can read messages from the OLEDB_DEV archive, unsubscribe from
OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.