/// <summary> /// Calls on the FDO Client services to unregister the SuperMap SDB/SDX provider. /// Use dynamic proc address binding because there will not be a path set up yet. /// </summary> /// <returns>S_FALSE if there was an error, S_OK otherwise.</returns> extern "C" FDO_SUPERMAP_API HRESULT DllUnregisterServer () { // Find a matching provider in the Provider Registry. IProviderRegistry* registry = FdoFeatureAccessManager::GetProviderRegistry(); registry->UnregisterProvider (SUPERMAP_PROVIDER_NAME); return S_OK; }
/// <summary> /// Calls on the FDO Client services to unregister the FdoRdbms provider. /// Use dynamic proc address binding because there will not be a path set up yet. /// </summary> /// <returns>SELFREG_E_CLASS if there was an error, S_OK otherwise.</returns> HRESULT APIENTRY DllUnregisterServer (void) { HRESULT ret; ret = SELFREG_E_CLASS; // The server was unable to remove the entries of all the object classes. IProviderRegistry *registry = FdoFeatureAccessManager::GetProviderRegistry(); if (registry != NULL) { registry->UnregisterProvider (RDBMS_ODBC_PROVIDER_NAME); ret = S_OK; } return (ret); }