|
UseRegistrationResponseCertificate |
Top Previous Next |
|
This function registers the software by the registration response certificate.
Public Shared Function UseRegistrationResponseCertificate(ByVal path As String) As Boolean
Parameters
path As String - certificate response path. Return value
Returns true if software is registered. Returns false otherwise.
Requirements
file: IntelliProtector.vb
Example
Private Sub btnUseCertificate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUseCertificate.Click
Using openFileDialog As New OpenFileDialog() openFileDialog.InitialDirectory = Application.StartupPath openFileDialog.Filter = "Data Files (*.dat)|*.dat|All Files (*.*)|*.*" If openFileDialog.ShowDialog() <> DialogResult.OK Then Return End If
Dim result As Boolean result = IntelliProtectorService.IntelliProtector.UseRegistrationResponseCertificate(openFileDialog.FileName) If result = False Then MessageBox.Show("Error, certificate is not used!") End If End Using
UpdateRegistrationStatus() End Sub
|
| Copyright © 2011 intelliprotector.com |