The msDataSourceObject method described below should be used only when the provider is being written in Microsoft® Visual Basic® or Microsoft Visual J++®. Implement msDataSourceObject in your provider code using the appropriate IDispatch methods.
If you are writing a provider in Visual Basic, msDataSourceObject provides the mechanism by which an OLE DB rowset maps to the correct OSP implementation. The method accepts a string parameter indicating the correct OSP and returns a pointer to that OSP (which you will then invoke using the standard IDispatch::Invoke call). See the supplied Visual Basic code samples for an example.
The signature for msDataSourceObject is as follows:
HRESULT msDataSourceObject( BSTR qualifier, LONG **ppUnk);
Parameters