Beispiel #1
0
        private static void UninstallCredentialProvider()
        {
            Toopher.CredentialProvider.Registration.CredProviderManager cpManager =
                Toopher.CredentialProvider.Registration.CredProviderManager.GetManager();

            cpManager.CpInfo.OpMode = Toopher.CredentialProvider.Registration.OperationMode.UNINSTALL;
            cpManager.ExecuteDefaultAction();
        }
Beispiel #2
0
        private static void RegisterAndEnableCredentialProvider()
        {
            Toopher.CredentialProvider.Registration.CredProviderManager cpManager =
                Toopher.CredentialProvider.Registration.CredProviderManager.GetManager();

            ToopherSettings tSettings = new ToopherSettings();

            tSettings.ToopherAuthExePath = ConfigureSubOptions.DefaultAuthExePath();

            cpManager.CpInfo.OpMode = Toopher.CredentialProvider.Registration.OperationMode.INSTALL;
            cpManager.ExecuteDefaultAction();

            cpManager.CpInfo.OpMode = Toopher.CredentialProvider.Registration.OperationMode.ENABLE;
            cpManager.ExecuteDefaultAction();
        }