private static void RegisterAndEnableCredentialProvider() { pGina.CredentialProvider.Registration.CredProviderManager cpManager = pGina.CredentialProvider.Registration.CredProviderManager.GetManager(); m_logger.Info("Registering CP/GINA...."); cpManager.CpInfo.OpMode = CredentialProvider.Registration.OperationMode.INSTALL; cpManager.ExecuteDefaultAction(); m_logger.Info("Enabling CP/GINA..."); cpManager.CpInfo.OpMode = CredentialProvider.Registration.OperationMode.ENABLE; cpManager.ExecuteDefaultAction(); }
private static void UninstallCredentialProvider() { pGina.CredentialProvider.Registration.CredProviderManager cpManager = pGina.CredentialProvider.Registration.CredProviderManager.GetManager(); m_logger.Info("Uninstalling CP/GINA...."); cpManager.CpInfo.OpMode = CredentialProvider.Registration.OperationMode.UNINSTALL; cpManager.ExecuteDefaultAction(); }