UseRegistrationResponseCertificate

Top  Previous  Next

This function registers the software by the registration response certificate.

 

public static bool UseRegistrationResponseCertificate(string path)

 

Parameters

 

 string path - certificate response path.
 

Return value

 

 Returns the status of operation (true: success, false: error).

 

Requirements

 

 file: IntelliProtector.cs

 namespace: IntelliProtectorService;

 

Example

 

private void btnUseCertificate_Click(object sender, EventArgs e)

{

 using (OpenFileDialog openFileDialog = new OpenFileDialog())

 {

         openFileDialog.InitialDirectory = Application.StartupPath;

         openFileDialog.Filter = @"Data Files (*.dat)|*.dat|All Files (*.*)|*.*";

         if (openFileDialog.ShowDialog() != DialogResult.OK)

                 return;

 

         bool result = IntelliProtector.UseRegistrationResponseCertificate(openFileDialog.FileName);

         if (result == false)

                 MessageBox.Show(@"Error, certificate is not used!");

 }

 

 UpdateRegistrationStatus();

}

 

 





Copyright © 2011 intelliprotector.com