checking in all the old panacean stuff

This commit is contained in:
2016-07-25 15:42:39 -04:00
parent c996cdd81f
commit 8fd9e44ae5
1210 changed files with 220657 additions and 0 deletions

View File

@@ -0,0 +1,877 @@
namespace VS2010SampleNET
{
partial class FormMain
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.label1 = new System.Windows.Forms.Label();
this.btnOk = new System.Windows.Forms.Button();
this.btnCancel = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.lIsRegistered = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.lTrialTimeUnitsTotal = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.lTrialTimeUnitsLeft = new System.Windows.Forms.Label();
this.btnShowRegistation = new System.Windows.Forms.Button();
this.btnSortArray = new System.Windows.Forms.Button();
this.lIsProtected = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lLicenseType = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.timerUpdateUnits = new System.Windows.Forms.Timer(this.components);
this.label7 = new System.Windows.Forms.Label();
this.lCurrentActivationDate = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.lFirstRegistrationDate = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.lCurrentRegistrationDate = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.lCustomerName = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.lCustomerEMail = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.lLicenseExpirationDaysTotal = new System.Windows.Forms.Label();
this.label15 = new System.Windows.Forms.Label();
this.lLicenseExpirationDaysLeft = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.lLicenseCode = new System.Windows.Forms.Label();
this.label19 = new System.Windows.Forms.Label();
this.tbLicenseCode = new System.Windows.Forms.TextBox();
this.btnRegister = new System.Windows.Forms.Button();
this.label14 = new System.Windows.Forms.Label();
this.lIntelliProtectorVersion = new System.Windows.Forms.Label();
this.label16 = new System.Windows.Forms.Label();
this.lOrderDate = new System.Windows.Forms.Label();
this.lTrialDaysTotal = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label21 = new System.Windows.Forms.Label();
this.lTrialDaysLeft = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.lLicenseExpirationDate = new System.Windows.Forms.Label();
this.label25 = new System.Windows.Forms.Label();
this.lCurrentPPVersion = new System.Windows.Forms.Label();
this.label27 = new System.Windows.Forms.Label();
this.lLaunchesTotal = new System.Windows.Forms.Label();
this.label29 = new System.Windows.Forms.Label();
this.lLaunchesLeft = new System.Windows.Forms.Label();
this.label23 = new System.Windows.Forms.Label();
this.label24 = new System.Windows.Forms.Label();
this.label31 = new System.Windows.Forms.Label();
this.lSupportExpirationDaysTotal = new System.Windows.Forms.Label();
this.lSupportExpirationDate = new System.Windows.Forms.Label();
this.lSupportExpirationDaysLeft = new System.Windows.Forms.Label();
this.label35 = new System.Windows.Forms.Label();
this.lSupportExpirationPPVersion = new System.Windows.Forms.Label();
this.label37 = new System.Windows.Forms.Label();
this.lRenewLicenseLink = new System.Windows.Forms.Label();
this.label39 = new System.Windows.Forms.Label();
this.lBuyNowLink = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.tbRenewalCode = new System.Windows.Forms.TextBox();
this.btnRenew = new System.Windows.Forms.Button();
this.lProtectionDate = new System.Windows.Forms.Label();
this.label26 = new System.Windows.Forms.Label();
this.btnRegistrationByEmail = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(471, 513);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(229, 13);
this.label1.TabIndex = 37;
this.label1.Text = "IntelliProtector sample. Visual Studio 2010.NET";
//
// btnOk
//
this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnOk.Location = new System.Drawing.Point(624, 7);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(75, 23);
this.btnOk.TabIndex = 33;
this.btnOk.Text = "Ok";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(624, 36);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 34;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(13, 29);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(101, 13);
this.label2.TabIndex = 2;
this.label2.Text = "Software registered:";
//
// lIsRegistered
//
this.lIsRegistered.AutoSize = true;
this.lIsRegistered.Location = new System.Drawing.Point(142, 29);
this.lIsRegistered.Name = "lIsRegistered";
this.lIsRegistered.Size = new System.Drawing.Size(19, 13);
this.lIsRegistered.TabIndex = 3;
this.lIsRegistered.Text = "no";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(13, 178);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(100, 13);
this.label4.TabIndex = 16;
this.label4.Text = "Trial time units total:";
//
// lTrialTimeUnitsTotal
//
this.lTrialTimeUnitsTotal.AutoSize = true;
this.lTrialTimeUnitsTotal.Location = new System.Drawing.Point(120, 178);
this.lTrialTimeUnitsTotal.Name = "lTrialTimeUnitsTotal";
this.lTrialTimeUnitsTotal.Size = new System.Drawing.Size(208, 13);
this.lTrialTimeUnitsTotal.TabIndex = 17;
this.lTrialTimeUnitsTotal.Text = "* mins | * hours | * days | * weeks | * months";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(13, 214);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(94, 13);
this.label6.TabIndex = 18;
this.label6.Text = "Trial time units left:";
//
// lTrialTimeUnitsLeft
//
this.lTrialTimeUnitsLeft.AutoSize = true;
this.lTrialTimeUnitsLeft.Location = new System.Drawing.Point(120, 214);
this.lTrialTimeUnitsLeft.Name = "lTrialTimeUnitsLeft";
this.lTrialTimeUnitsLeft.Size = new System.Drawing.Size(208, 13);
this.lTrialTimeUnitsLeft.TabIndex = 19;
this.lTrialTimeUnitsLeft.Text = "* mins | * hours | * days | * weeks | * months";
//
// btnShowRegistation
//
this.btnShowRegistation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnShowRegistation.Location = new System.Drawing.Point(547, 84);
this.btnShowRegistation.Name = "btnShowRegistation";
this.btnShowRegistation.Size = new System.Drawing.Size(153, 23);
this.btnShowRegistation.TabIndex = 35;
this.btnShowRegistation.Text = "Show Registration Window";
this.btnShowRegistation.UseVisualStyleBackColor = true;
this.btnShowRegistation.Click += new System.EventHandler(this.btnShowRegistation_Click);
//
// btnSortArray
//
this.btnSortArray.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnSortArray.Location = new System.Drawing.Point(547, 114);
this.btnSortArray.Name = "btnSortArray";
this.btnSortArray.Size = new System.Drawing.Size(153, 23);
this.btnSortArray.TabIndex = 36;
this.btnSortArray.Text = "Sort array (encrypted call)";
this.btnSortArray.UseVisualStyleBackColor = true;
this.btnSortArray.Click += new System.EventHandler(this.btnSortArray_Click);
//
// lIsProtected
//
this.lIsProtected.AutoSize = true;
this.lIsProtected.Location = new System.Drawing.Point(142, 12);
this.lIsProtected.Name = "lIsProtected";
this.lIsProtected.Size = new System.Drawing.Size(19, 13);
this.lIsProtected.TabIndex = 1;
this.lIsProtected.Text = "no";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(13, 12);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(100, 13);
this.label3.TabIndex = 0;
this.label3.Text = "Software protected:";
//
// lLicenseType
//
this.lLicenseType.AutoSize = true;
this.lLicenseType.Location = new System.Drawing.Point(142, 46);
this.lLicenseType.Name = "lLicenseType";
this.lLicenseType.Size = new System.Drawing.Size(16, 13);
this.lLicenseType.TabIndex = 5;
this.lLicenseType.Text = "-1";
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(13, 46);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(70, 13);
this.label8.TabIndex = 4;
this.label8.Text = "License type:";
//
// timerUpdateUnits
//
this.timerUpdateUnits.Enabled = true;
this.timerUpdateUnits.Interval = 30000;
this.timerUpdateUnits.Tick += new System.EventHandler(this.timerUpdateUnits_Tick);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(13, 93);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(117, 13);
this.label7.TabIndex = 10;
this.label7.Text = "Current activation date:";
//
// lCurrentActivationDate
//
this.lCurrentActivationDate.Location = new System.Drawing.Point(142, 93);
this.lCurrentActivationDate.Name = "lCurrentActivationDate";
this.lCurrentActivationDate.Size = new System.Drawing.Size(179, 13);
this.lCurrentActivationDate.TabIndex = 11;
this.lCurrentActivationDate.Text = "date";
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(13, 112);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(107, 13);
this.label10.TabIndex = 12;
this.label10.Text = "First registration date:";
//
// lFirstRegistrationDate
//
this.lFirstRegistrationDate.Location = new System.Drawing.Point(142, 112);
this.lFirstRegistrationDate.Name = "lFirstRegistrationDate";
this.lFirstRegistrationDate.Size = new System.Drawing.Size(179, 13);
this.lFirstRegistrationDate.TabIndex = 13;
this.lFirstRegistrationDate.Text = "date";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(13, 131);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(122, 13);
this.label12.TabIndex = 14;
this.label12.Text = "Current registration date:";
//
// lCurrentRegistrationDate
//
this.lCurrentRegistrationDate.Location = new System.Drawing.Point(142, 131);
this.lCurrentRegistrationDate.Name = "lCurrentRegistrationDate";
this.lCurrentRegistrationDate.Size = new System.Drawing.Size(179, 13);
this.lCurrentRegistrationDate.TabIndex = 15;
this.lCurrentRegistrationDate.Text = "date";
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(251, 12);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(83, 13);
this.label9.TabIndex = 6;
this.label9.Text = "Customer name:";
//
// lCustomerName
//
this.lCustomerName.Location = new System.Drawing.Point(342, 12);
this.lCustomerName.Name = "lCustomerName";
this.lCustomerName.Size = new System.Drawing.Size(209, 13);
this.lCustomerName.TabIndex = 8;
this.lCustomerName.Text = "customer name";
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(251, 29);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(84, 13);
this.label13.TabIndex = 7;
this.label13.Text = "Customer e-mail:";
//
// lCustomerEMail
//
this.lCustomerEMail.Location = new System.Drawing.Point(342, 29);
this.lCustomerEMail.Name = "lCustomerEMail";
this.lCustomerEMail.Size = new System.Drawing.Size(209, 13);
this.lCustomerEMail.TabIndex = 9;
this.lCustomerEMail.Text = "customer e-mail";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(13, 312);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(143, 13);
this.label11.TabIndex = 20;
this.label11.Text = "License expiration days total:";
//
// lLicenseExpirationDaysTotal
//
this.lLicenseExpirationDaysTotal.AutoSize = true;
this.lLicenseExpirationDaysTotal.Location = new System.Drawing.Point(158, 312);
this.lLicenseExpirationDaysTotal.Name = "lLicenseExpirationDaysTotal";
this.lLicenseExpirationDaysTotal.Size = new System.Drawing.Size(13, 13);
this.lLicenseExpirationDaysTotal.TabIndex = 21;
this.lLicenseExpirationDaysTotal.Text = "0";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(13, 329);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(137, 13);
this.label15.TabIndex = 22;
this.label15.Text = "License expiration days left:";
//
// lLicenseExpirationDaysLeft
//
this.lLicenseExpirationDaysLeft.AutoSize = true;
this.lLicenseExpirationDaysLeft.Location = new System.Drawing.Point(158, 329);
this.lLicenseExpirationDaysLeft.Name = "lLicenseExpirationDaysLeft";
this.lLicenseExpirationDaysLeft.Size = new System.Drawing.Size(13, 13);
this.lLicenseExpirationDaysLeft.TabIndex = 23;
this.lLicenseExpirationDaysLeft.Text = "0";
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(10, 403);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(74, 13);
this.label17.TabIndex = 29;
this.label17.Text = "License code:";
//
// lLicenseCode
//
this.lLicenseCode.Location = new System.Drawing.Point(130, 403);
this.lLicenseCode.Name = "lLicenseCode";
this.lLicenseCode.Size = new System.Drawing.Size(301, 13);
this.lLicenseCode.TabIndex = 30;
this.lLicenseCode.Text = "license code";
//
// label19
//
this.label19.AutoSize = true;
this.label19.Location = new System.Drawing.Point(13, 431);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(74, 13);
this.label19.TabIndex = 26;
this.label19.Text = "License code:";
//
// tbLicenseCode
//
this.tbLicenseCode.Location = new System.Drawing.Point(111, 428);
this.tbLicenseCode.Name = "tbLicenseCode";
this.tbLicenseCode.Size = new System.Drawing.Size(301, 20);
this.tbLicenseCode.TabIndex = 27;
//
// btnRegister
//
this.btnRegister.Location = new System.Drawing.Point(418, 428);
this.btnRegister.Name = "btnRegister";
this.btnRegister.Size = new System.Drawing.Size(75, 23);
this.btnRegister.TabIndex = 28;
this.btnRegister.Text = "Register";
this.btnRegister.UseVisualStyleBackColor = true;
this.btnRegister.Click += new System.EventHandler(this.btnRegister_Click);
//
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(13, 488);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(114, 13);
this.label14.TabIndex = 31;
this.label14.Text = "IntelliProtector version:";
//
// lIntelliProtectorVersion
//
this.lIntelliProtectorVersion.AutoSize = true;
this.lIntelliProtectorVersion.Location = new System.Drawing.Point(130, 488);
this.lIntelliProtectorVersion.Name = "lIntelliProtectorVersion";
this.lIntelliProtectorVersion.Size = new System.Drawing.Size(41, 13);
this.lIntelliProtectorVersion.TabIndex = 32;
this.lIntelliProtectorVersion.Text = "version";
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(13, 74);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(60, 13);
this.label16.TabIndex = 10;
this.label16.Text = "Order date:";
//
// lOrderDate
//
this.lOrderDate.Location = new System.Drawing.Point(142, 74);
this.lOrderDate.Name = "lOrderDate";
this.lOrderDate.Size = new System.Drawing.Size(179, 13);
this.lOrderDate.TabIndex = 11;
this.lOrderDate.Text = "date";
//
// lTrialDaysTotal
//
this.lTrialDaysTotal.AutoSize = true;
this.lTrialDaysTotal.Location = new System.Drawing.Point(120, 194);
this.lTrialDaysTotal.Name = "lTrialDaysTotal";
this.lTrialDaysTotal.Size = new System.Drawing.Size(13, 13);
this.lTrialDaysTotal.TabIndex = 39;
this.lTrialDaysTotal.Text = "0";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Location = new System.Drawing.Point(13, 194);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(78, 13);
this.label20.TabIndex = 38;
this.label20.Text = "Trial days total:";
//
// label21
//
this.label21.AutoSize = true;
this.label21.Location = new System.Drawing.Point(13, 230);
this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(72, 13);
this.label21.TabIndex = 38;
this.label21.Text = "Trial days left:";
//
// lTrialDaysLeft
//
this.lTrialDaysLeft.AutoSize = true;
this.lTrialDaysLeft.Location = new System.Drawing.Point(120, 230);
this.lTrialDaysLeft.Name = "lTrialDaysLeft";
this.lTrialDaysLeft.Size = new System.Drawing.Size(13, 13);
this.lTrialDaysLeft.TabIndex = 39;
this.lTrialDaysLeft.Text = "0";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(13, 295);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(119, 13);
this.label18.TabIndex = 20;
this.label18.Text = "License expiration date:";
//
// lLicenseExpirationDate
//
this.lLicenseExpirationDate.AutoSize = true;
this.lLicenseExpirationDate.Location = new System.Drawing.Point(158, 295);
this.lLicenseExpirationDate.Name = "lLicenseExpirationDate";
this.lLicenseExpirationDate.Size = new System.Drawing.Size(28, 13);
this.lLicenseExpirationDate.TabIndex = 21;
this.lLicenseExpirationDate.Text = "date";
//
// label25
//
this.label25.AutoSize = true;
this.label25.Location = new System.Drawing.Point(251, 46);
this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(84, 13);
this.label25.TabIndex = 7;
this.label25.Text = "Product version:";
//
// lCurrentPPVersion
//
this.lCurrentPPVersion.Location = new System.Drawing.Point(342, 46);
this.lCurrentPPVersion.Name = "lCurrentPPVersion";
this.lCurrentPPVersion.Size = new System.Drawing.Size(131, 13);
this.lCurrentPPVersion.TabIndex = 9;
this.lCurrentPPVersion.Text = "1.0";
//
// label27
//
this.label27.AutoSize = true;
this.label27.Location = new System.Drawing.Point(13, 254);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(99, 13);
this.label27.TabIndex = 38;
this.label27.Text = "Trial launches total:";
//
// lLaunchesTotal
//
this.lLaunchesTotal.AutoSize = true;
this.lLaunchesTotal.Location = new System.Drawing.Point(120, 254);
this.lLaunchesTotal.Name = "lLaunchesTotal";
this.lLaunchesTotal.Size = new System.Drawing.Size(13, 13);
this.lLaunchesTotal.TabIndex = 39;
this.lLaunchesTotal.Text = "0";
//
// label29
//
this.label29.AutoSize = true;
this.label29.Location = new System.Drawing.Point(13, 272);
this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(93, 13);
this.label29.TabIndex = 38;
this.label29.Text = "Trial launches left:";
//
// lLaunchesLeft
//
this.lLaunchesLeft.AutoSize = true;
this.lLaunchesLeft.Location = new System.Drawing.Point(120, 272);
this.lLaunchesLeft.Name = "lLaunchesLeft";
this.lLaunchesLeft.Size = new System.Drawing.Size(13, 13);
this.lLaunchesLeft.TabIndex = 39;
this.lLaunchesLeft.Text = "0";
//
// label23
//
this.label23.AutoSize = true;
this.label23.Location = new System.Drawing.Point(337, 330);
this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(143, 13);
this.label23.TabIndex = 20;
this.label23.Text = "Support expiration days total:";
//
// label24
//
this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(337, 295);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(119, 13);
this.label24.TabIndex = 20;
this.label24.Text = "Support expiration date:";
//
// label31
//
this.label31.AutoSize = true;
this.label31.Location = new System.Drawing.Point(337, 347);
this.label31.Name = "label31";
this.label31.Size = new System.Drawing.Size(137, 13);
this.label31.TabIndex = 22;
this.label31.Text = "Support expiration days left:";
//
// lSupportExpirationDaysTotal
//
this.lSupportExpirationDaysTotal.AutoSize = true;
this.lSupportExpirationDaysTotal.Location = new System.Drawing.Point(482, 330);
this.lSupportExpirationDaysTotal.Name = "lSupportExpirationDaysTotal";
this.lSupportExpirationDaysTotal.Size = new System.Drawing.Size(13, 13);
this.lSupportExpirationDaysTotal.TabIndex = 21;
this.lSupportExpirationDaysTotal.Text = "0";
//
// lSupportExpirationDate
//
this.lSupportExpirationDate.AutoSize = true;
this.lSupportExpirationDate.Location = new System.Drawing.Point(482, 295);
this.lSupportExpirationDate.Name = "lSupportExpirationDate";
this.lSupportExpirationDate.Size = new System.Drawing.Size(28, 13);
this.lSupportExpirationDate.TabIndex = 21;
this.lSupportExpirationDate.Text = "date";
//
// lSupportExpirationDaysLeft
//
this.lSupportExpirationDaysLeft.AutoSize = true;
this.lSupportExpirationDaysLeft.Location = new System.Drawing.Point(482, 347);
this.lSupportExpirationDaysLeft.Name = "lSupportExpirationDaysLeft";
this.lSupportExpirationDaysLeft.Size = new System.Drawing.Size(13, 13);
this.lSupportExpirationDaysLeft.TabIndex = 23;
this.lSupportExpirationDaysLeft.Text = "0";
//
// label35
//
this.label35.AutoSize = true;
this.label35.Location = new System.Drawing.Point(337, 312);
this.label35.Name = "label35";
this.label35.Size = new System.Drawing.Size(132, 13);
this.label35.TabIndex = 22;
this.label35.Text = "Support expiration version:";
//
// lSupportExpirationPPVersion
//
this.lSupportExpirationPPVersion.AutoSize = true;
this.lSupportExpirationPPVersion.Location = new System.Drawing.Point(482, 312);
this.lSupportExpirationPPVersion.Name = "lSupportExpirationPPVersion";
this.lSupportExpirationPPVersion.Size = new System.Drawing.Size(22, 13);
this.lSupportExpirationPPVersion.TabIndex = 23;
this.lSupportExpirationPPVersion.Text = "1.5";
//
// label37
//
this.label37.AutoSize = true;
this.label37.Location = new System.Drawing.Point(10, 387);
this.label37.Name = "label37";
this.label37.Size = new System.Drawing.Size(114, 13);
this.label37.TabIndex = 29;
this.label37.Text = "Purchase renewal link:";
//
// lRenewLicenseLink
//
this.lRenewLicenseLink.Location = new System.Drawing.Point(130, 387);
this.lRenewLicenseLink.Name = "lRenewLicenseLink";
this.lRenewLicenseLink.Size = new System.Drawing.Size(350, 13);
this.lRenewLicenseLink.TabIndex = 30;
this.lRenewLicenseLink.Text = "http://www.mysite.com/purchase2.html";
//
// label39
//
this.label39.AutoSize = true;
this.label39.Location = new System.Drawing.Point(10, 371);
this.label39.Name = "label39";
this.label39.Size = new System.Drawing.Size(110, 13);
this.label39.TabIndex = 29;
this.label39.Text = "Purchase license link:";
//
// lBuyNowLink
//
this.lBuyNowLink.Location = new System.Drawing.Point(130, 371);
this.lBuyNowLink.Name = "lBuyNowLink";
this.lBuyNowLink.Size = new System.Drawing.Size(350, 13);
this.lBuyNowLink.TabIndex = 30;
this.lBuyNowLink.Text = "http://www.mysite.com/purchase1.html";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(12, 457);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(79, 13);
this.label5.TabIndex = 26;
this.label5.Text = "Renewal code:";
//
// tbRenewalCode
//
this.tbRenewalCode.Location = new System.Drawing.Point(110, 454);
this.tbRenewalCode.Name = "tbRenewalCode";
this.tbRenewalCode.Size = new System.Drawing.Size(301, 20);
this.tbRenewalCode.TabIndex = 27;
//
// btnRenew
//
this.btnRenew.Location = new System.Drawing.Point(417, 454);
this.btnRenew.Name = "btnRenew";
this.btnRenew.Size = new System.Drawing.Size(75, 23);
this.btnRenew.TabIndex = 28;
this.btnRenew.Text = "Renew";
this.btnRenew.UseVisualStyleBackColor = true;
this.btnRenew.Click += new System.EventHandler(this.btnRenew_Click);
//
// lProtectionDate
//
this.lProtectionDate.Location = new System.Drawing.Point(142, 149);
this.lProtectionDate.Name = "lProtectionDate";
this.lProtectionDate.Size = new System.Drawing.Size(179, 13);
this.lProtectionDate.TabIndex = 41;
this.lProtectionDate.Text = "date";
//
// label26
//
this.label26.AutoSize = true;
this.label26.Location = new System.Drawing.Point(13, 149);
this.label26.Name = "label26";
this.label26.Size = new System.Drawing.Size(82, 13);
this.label26.TabIndex = 40;
this.label26.Text = "Protection date:";
//
// btnRegistrationByEmail
//
this.btnRegistrationByEmail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnRegistrationByEmail.Location = new System.Drawing.Point(547, 143);
this.btnRegistrationByEmail.Name = "btnRegistrationByEmail";
this.btnRegistrationByEmail.Size = new System.Drawing.Size(153, 23);
this.btnRegistrationByEmail.TabIndex = 42;
this.btnRegistrationByEmail.Text = "Registration By Email";
this.btnRegistrationByEmail.UseVisualStyleBackColor = true;
this.btnRegistrationByEmail.Click += new System.EventHandler(this.btnRegistrationByEmail_Click);
//
// FormMain
//
this.AcceptButton = this.btnOk;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(711, 535);
this.Controls.Add(this.btnRegistrationByEmail);
this.Controls.Add(this.lProtectionDate);
this.Controls.Add(this.label26);
this.Controls.Add(this.lLaunchesLeft);
this.Controls.Add(this.lLaunchesTotal);
this.Controls.Add(this.lTrialDaysLeft);
this.Controls.Add(this.lTrialDaysTotal);
this.Controls.Add(this.label29);
this.Controls.Add(this.label27);
this.Controls.Add(this.label21);
this.Controls.Add(this.label20);
this.Controls.Add(this.btnRenew);
this.Controls.Add(this.btnRegister);
this.Controls.Add(this.tbRenewalCode);
this.Controls.Add(this.tbLicenseCode);
this.Controls.Add(this.lCurrentRegistrationDate);
this.Controls.Add(this.label12);
this.Controls.Add(this.lFirstRegistrationDate);
this.Controls.Add(this.label10);
this.Controls.Add(this.lOrderDate);
this.Controls.Add(this.lCurrentActivationDate);
this.Controls.Add(this.label16);
this.Controls.Add(this.label7);
this.Controls.Add(this.lCurrentPPVersion);
this.Controls.Add(this.lCustomerEMail);
this.Controls.Add(this.lCustomerName);
this.Controls.Add(this.label25);
this.Controls.Add(this.label13);
this.Controls.Add(this.lIntelliProtectorVersion);
this.Controls.Add(this.lSupportExpirationPPVersion);
this.Controls.Add(this.lSupportExpirationDaysLeft);
this.Controls.Add(this.lLicenseExpirationDaysLeft);
this.Controls.Add(this.lSupportExpirationDate);
this.Controls.Add(this.lLicenseExpirationDate);
this.Controls.Add(this.lSupportExpirationDaysTotal);
this.Controls.Add(this.lLicenseExpirationDaysTotal);
this.Controls.Add(this.lBuyNowLink);
this.Controls.Add(this.lRenewLicenseLink);
this.Controls.Add(this.lLicenseCode);
this.Controls.Add(this.lLicenseType);
this.Controls.Add(this.label9);
this.Controls.Add(this.label14);
this.Controls.Add(this.label35);
this.Controls.Add(this.label31);
this.Controls.Add(this.label15);
this.Controls.Add(this.label5);
this.Controls.Add(this.label19);
this.Controls.Add(this.label24);
this.Controls.Add(this.label18);
this.Controls.Add(this.label23);
this.Controls.Add(this.label39);
this.Controls.Add(this.label11);
this.Controls.Add(this.label37);
this.Controls.Add(this.label17);
this.Controls.Add(this.label8);
this.Controls.Add(this.lIsProtected);
this.Controls.Add(this.label3);
this.Controls.Add(this.lTrialTimeUnitsLeft);
this.Controls.Add(this.lTrialTimeUnitsTotal);
this.Controls.Add(this.lIsRegistered);
this.Controls.Add(this.label6);
this.Controls.Add(this.label4);
this.Controls.Add(this.label2);
this.Controls.Add(this.btnSortArray);
this.Controls.Add(this.btnShowRegistation);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnOk);
this.Controls.Add(this.label1);
this.Name = "FormMain";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FormMain. Sample .NET";
this.Load += new System.EventHandler(this.FormMain_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button btnOk;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lIsRegistered;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label lTrialTimeUnitsTotal;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label lTrialTimeUnitsLeft;
private System.Windows.Forms.Button btnShowRegistation;
private System.Windows.Forms.Button btnSortArray;
private System.Windows.Forms.Label lIsProtected;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label lLicenseType;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Timer timerUpdateUnits;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label lCurrentActivationDate;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label lFirstRegistrationDate;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label lCurrentRegistrationDate;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lCustomerName;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label lCustomerEMail;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label lLicenseExpirationDaysTotal;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label lLicenseExpirationDaysLeft;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Label lLicenseCode;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.TextBox tbLicenseCode;
private System.Windows.Forms.Button btnRegister;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.Label lIntelliProtectorVersion;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.Label lOrderDate;
private System.Windows.Forms.Label lTrialDaysTotal;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label21;
private System.Windows.Forms.Label lTrialDaysLeft;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label lLicenseExpirationDate;
private System.Windows.Forms.Label label25;
private System.Windows.Forms.Label lCurrentPPVersion;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label lLaunchesTotal;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.Label lLaunchesLeft;
private System.Windows.Forms.Label label23;
private System.Windows.Forms.Label label24;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.Label lSupportExpirationDaysTotal;
private System.Windows.Forms.Label lSupportExpirationDate;
private System.Windows.Forms.Label lSupportExpirationDaysLeft;
private System.Windows.Forms.Label label35;
private System.Windows.Forms.Label lSupportExpirationPPVersion;
private System.Windows.Forms.Label label37;
private System.Windows.Forms.Label lRenewLicenseLink;
private System.Windows.Forms.Label label39;
private System.Windows.Forms.Label lBuyNowLink;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.TextBox tbRenewalCode;
private System.Windows.Forms.Button btnRenew;
private System.Windows.Forms.Label lProtectionDate;
private System.Windows.Forms.Label label26;
private System.Windows.Forms.Button btnRegistrationByEmail;
}
}

View File

@@ -0,0 +1,201 @@
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// == How to test this example ==
// 1. Build C# project (VS2010SampleNET)
// 2. Protect the VS2010SampleNET.exe with IntelliProtector
// 3. Start VS2010SampleNET.exe.
//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Text;
using System.Windows.Forms;
namespace VS2010SampleNET
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void btnOk_Click(object sender, EventArgs e)
{
Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
Close();
}
private void btnSortArray_Click(object sender, EventArgs e)
{
try
{
SortArray();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, Text);
}
}
[IntelliProtectorService.attributes.Encrypt]
private void SortArray()
{
int[] array = new int[] { 10, 2, 3, 101, 3, 33, 7, 1 };
Array.Sort(array);
MessageBox.Show(@"Array is sorted");
}
private void FormMain_Load(object sender, EventArgs e)
{
try
{
UpdateControls();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, Text);
}
}
private void UpdateControls()
{
lIsProtected.Text = IntelliProtectorService.IntelliProtector.IsSoftwareProtected() ? "yes" : "no";
lIsRegistered.Text = IntelliProtectorService.IntelliProtector.IsSoftwareRegistered() ? "yes" : "no";
lTrialTimeUnitsTotal.Text = string.Format("{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
, IntelliProtectorService.IntelliProtector.GetTrialUnitsCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudMinutes)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudHours)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudDays)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudWeeks)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudMonths)
);
lLicenseType.Text = IntelliProtectorService.IntelliProtector.GetLicenseType().ToString();
int iDays = IntelliProtectorService.IntelliProtector.GetTrialDaysCount();
lTrialDaysTotal.Text = iDays.ToString();
iDays = IntelliProtectorService.IntelliProtector.GetTrialDaysLeftCount();
lTrialDaysLeft.Text = iDays.ToString();
iDays = IntelliProtectorService.IntelliProtector.GetLicenseExpirationDaysCount();
lLicenseExpirationDaysTotal.Text = iDays.ToString();
iDays = IntelliProtectorService.IntelliProtector.GetLicenseExpirationDaysLeftCount();
lLicenseExpirationDaysLeft.Text = iDays.ToString();
timerUpdateUnits_Tick(null, null);
lLaunchesTotal.Text = IntelliProtectorService.IntelliProtector.GetTrialLaunchesCount().ToString();
lLaunchesLeft.Text = IntelliProtectorService.IntelliProtector.GetTrialLaunchesLeftCount().ToString();
const int ciMaxBufferLen = 256;
StringBuilder stbBuffer = new StringBuilder(ciMaxBufferLen);
lBuyNowLink.Text = IntelliProtectorService.IntelliProtector.GetBuyNowLink();
lRenewLicenseLink.Text = IntelliProtectorService.IntelliProtector.GetRenewalPurchaseLink();
lCurrentPPVersion.Text = IntelliProtectorService.IntelliProtector.GetCurrentProductVersion();
lSupportExpirationPPVersion.Text = IntelliProtectorService.IntelliProtector.GetSupportExpirationProductVersion();
lLicenseCode.Text = IntelliProtectorService.IntelliProtector.GetLicenseCode();
lCustomerName.Text = IntelliProtectorService.IntelliProtector.GetCustomerName();
lCustomerEMail.Text = IntelliProtectorService.IntelliProtector.GetCustomerEMail();
lLicenseExpirationDaysTotal.Text = IntelliProtectorService.IntelliProtector.GetLicenseExpirationDaysCount().ToString();
lLicenseExpirationDaysLeft.Text = IntelliProtectorService.IntelliProtector.GetLicenseExpirationDaysLeftCount().ToString();
lSupportExpirationDaysTotal.Text = IntelliProtectorService.IntelliProtector.GetSupportExpirationDaysCount().ToString();
lSupportExpirationDaysLeft.Text = IntelliProtectorService.IntelliProtector.GetSupportExpirationDaysLeftCount().ToString();
DateTime dtOrder = IntelliProtectorService.IntelliProtector.GetOrderDate();
ShowDate(lOrderDate, dtOrder);
DateTime dtCurrentActivationDate = IntelliProtectorService.IntelliProtector.GetCurrentActivationDate();
ShowDate(lCurrentActivationDate, dtCurrentActivationDate);
DateTime dtFirstRegistrationDate = IntelliProtectorService.IntelliProtector.GetFirstRegistrationDate();
ShowDate(lFirstRegistrationDate, dtFirstRegistrationDate);
DateTime dtCurrentRegistrationDate = IntelliProtectorService.IntelliProtector.GetCurrentRegistrationDate();
ShowDate(lCurrentRegistrationDate, dtCurrentRegistrationDate);
DateTime dtProtectionDate = IntelliProtectorService.IntelliProtector.GetProtectionDate();
ShowDate(lProtectionDate, dtProtectionDate);
DateTime dtLicenseExpirationDate = IntelliProtectorService.IntelliProtector.GetLicenseExpirationDate();
ShowDate(lLicenseExpirationDate, dtLicenseExpirationDate);
DateTime dtSupportExpirationDate = IntelliProtectorService.IntelliProtector.GetSupportExpirationDate();
ShowDate(lSupportExpirationDate, dtSupportExpirationDate);
lIntelliProtectorVersion.Text = IntelliProtectorService.IntelliProtector.GetIntelliProtectorVersion();
}
private static void ShowDate(Control label, DateTime dt)
{
label.Text = (dt != DateTime.MinValue) ? string.Format("{0}.{1}.{2} {3}:{4}", dt.Year, dt.Month, dt.Day, dt.Hour, dt.Minute) : "Not applicable";
}
private void timerUpdateUnits_Tick(object sender, EventArgs e)
{
lTrialTimeUnitsLeft.Text = string.Format("{0} mins | {1} hours | {2} days | {3} weeks | {4} months"
, IntelliProtectorService.IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudMinutes)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudHours)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudDays)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudWeeks)
, IntelliProtectorService.IntelliProtector.GetTrialUnitsLeftCount((int)IntelliProtectorService.IntelliProtector.enUnitDimension.eudMonths)
);
}
private void btnShowRegistation_Click(object sender, EventArgs e)
{
try
{
IntelliProtectorService.IntelliProtector.ShowRegistrationWindow();
UpdateControls();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, Text);
}
}
private void btnRegister_Click(object sender, EventArgs e)
{
try
{
IntelliProtectorService.IntelliProtector.RegisterSoftware(tbLicenseCode.Text);
UpdateControls();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, Text);
}
}
private void btnRenew_Click(object sender, EventArgs e)
{
try
{
IntelliProtectorService.IntelliProtector.RenewLicenseCode(tbRenewalCode.Text);
UpdateControls();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, Text);
}
}
private void btnRegistrationByEmail_Click(object sender, EventArgs e)
{
using (FormRegistrationByEmail regByEmail = new FormRegistrationByEmail("VS2010 CS sample.dat"))
regByEmail.ShowDialog();
UpdateControls();
}
}
}

View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timerUpdateUnits.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>51</value>
</metadata>
</root>

View File

@@ -0,0 +1,141 @@
namespace VS2010SampleNET
{
partial class FormRegistrationByEmail
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.tbLicenseCode = new System.Windows.Forms.TextBox();
this.btnSaveCertificate = new System.Windows.Forms.Button();
this.btnUseCertificate = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnClose = new System.Windows.Forms.Button();
this.lRegistrationStatus = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(74, 13);
this.label1.TabIndex = 0;
this.label1.Text = "License code:";
//
// tbLicenseCode
//
this.tbLicenseCode.Location = new System.Drawing.Point(92, 6);
this.tbLicenseCode.Name = "tbLicenseCode";
this.tbLicenseCode.Size = new System.Drawing.Size(347, 20);
this.tbLicenseCode.TabIndex = 1;
//
// btnSaveCertificate
//
this.btnSaveCertificate.Location = new System.Drawing.Point(127, 47);
this.btnSaveCertificate.Name = "btnSaveCertificate";
this.btnSaveCertificate.Size = new System.Drawing.Size(197, 23);
this.btnSaveCertificate.TabIndex = 2;
this.btnSaveCertificate.Text = "1. Save request certificate";
this.btnSaveCertificate.UseVisualStyleBackColor = true;
this.btnSaveCertificate.Click += new System.EventHandler(this.btnSaveCertificate_Click);
//
// btnUseCertificate
//
this.btnUseCertificate.Location = new System.Drawing.Point(127, 76);
this.btnUseCertificate.Name = "btnUseCertificate";
this.btnUseCertificate.Size = new System.Drawing.Size(197, 23);
this.btnUseCertificate.TabIndex = 2;
this.btnUseCertificate.Text = "2. Use response certificate";
this.btnUseCertificate.UseVisualStyleBackColor = true;
this.btnUseCertificate.Click += new System.EventHandler(this.btnUseCertificate_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lRegistrationStatus);
this.groupBox1.Location = new System.Drawing.Point(12, 121);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(427, 73);
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Registration status";
//
// btnClose
//
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnClose.Location = new System.Drawing.Point(181, 219);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(89, 23);
this.btnClose.TabIndex = 4;
this.btnClose.Text = "Close";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// lRegistrationStatus
//
this.lRegistrationStatus.Location = new System.Drawing.Point(130, 27);
this.lRegistrationStatus.Name = "lRegistrationStatus";
this.lRegistrationStatus.Size = new System.Drawing.Size(166, 25);
this.lRegistrationStatus.TabIndex = 0;
this.lRegistrationStatus.Text = "status";
this.lRegistrationStatus.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// FormRegistrationByEmail
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(451, 254);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.btnUseCertificate);
this.Controls.Add(this.btnSaveCertificate);
this.Controls.Add(this.tbLicenseCode);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormRegistrationByEmail";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Registration by e-mail";
this.Load += new System.EventHandler(this.FormRegistrationByEmail_Load);
this.groupBox1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox tbLicenseCode;
private System.Windows.Forms.Button btnSaveCertificate;
private System.Windows.Forms.Button btnUseCertificate;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label lRegistrationStatus;
private System.Windows.Forms.Button btnClose;
}
}

View File

@@ -0,0 +1,72 @@
using System;
using System.Windows.Forms;
using IntelliProtectorService;
namespace VS2010SampleNET
{
public partial class FormRegistrationByEmail : Form
{
private readonly string _certificateName;
public FormRegistrationByEmail(string certificateName)
{
_certificateName = certificateName;
InitializeComponent();
}
private void btnSaveCertificate_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(tbLicenseCode.Text))
{
MessageBox.Show(@"Please specify the license code", @"License is empty");
return;
}
using(SaveFileDialog saveFileDialog = new SaveFileDialog())
{
saveFileDialog.FileName = _certificateName;
saveFileDialog.OverwritePrompt = true;
saveFileDialog.InitialDirectory = Application.StartupPath;
saveFileDialog.Filter = @"Data Files (*.dat)|*.dat|All Files (*.*)|*.*";
if (saveFileDialog.ShowDialog() != DialogResult.OK)
return;
bool result = IntelliProtector.CreateRegistrationRequestCertificate(saveFileDialog.FileName, tbLicenseCode.Text);
if (result == false)
MessageBox.Show(@"Error, certificate is not saved!");
}
}
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();
}
void UpdateRegistrationStatus()
{
lRegistrationStatus.Text = IntelliProtector.IsSoftwareRegistered() ? @"registered" : @"not registered";
}
private void btnClose_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
private void FormRegistrationByEmail_Load(object sender, EventArgs e)
{
UpdateRegistrationStatus();
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,930 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2010. IntelliProtector.com
// Web site: http://intelliprotector.com
// Version: v2.5
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace netprotector.api
{
internal delegate void dVoid_NoParams();
internal delegate void dVoid_BoolParam(out bool b1);
internal delegate void dVoid_IntParam(out int i1);
internal delegate void dVoid_2IntParam(out int i1, int i2);
internal delegate void dVoid_5IntParams(out int i1, out int i2, out int i3, out int i4, out int i5);
internal delegate void dVoid_StringBuilderParam([MarshalAs(UnmanagedType.LPWStr)] StringBuilder s1, int iMaxLength);
internal delegate void dBool_StringParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1, int iMaxLength);
internal delegate void dBool_StringOnlyParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1);
internal delegate void dBool_StringStringParam(out bool res, [MarshalAs(UnmanagedType.LPWStr)]String s1, [MarshalAs(UnmanagedType.LPWStr)]String s2);
}
namespace IntelliProtectorService.attributes
{
internal class Encrypt : Attribute { }
internal class GetBuyNowLinkAttribute : Attribute { }
internal class IsSoftwareProtectedAttribute : Attribute { }
internal class IsSoftwareRegisteredAttribute : Attribute { }
internal class GetTrialDaysCountAttribute : Attribute { }
internal class GetTrialUnitsCountAttribute : Attribute { }
internal class GetTrialDaysLeftCountAttribute : Attribute { }
internal class GetTrialUnitsLeftCountAttribute : Attribute { }
internal class GetTrialLaunchesCountAttribute : Attribute { }
internal class GetTrialLaunchesLeftCountAttribute : Attribute { }
internal class ShowRegistrationWindowAttribute : Attribute { }
internal class IsTrialElapsedAttribute : Attribute { }
internal class GetRenewalPurchaseLinkAttribute : Attribute { }
internal class GetLicenseTypeAttribute : Attribute { }
internal class GetLicenseExpirationDaysCountAttribute : Attribute { }
internal class GetLicenseExpirationDaysLeftCountAttribute : Attribute { }
internal class GetSupportExpirationDaysCountAttribute : Attribute { }
internal class GetSupportExpirationDaysLeftCountAttribute : Attribute { }
internal class GetCurrentProductVersionAttribute : Attribute { }
internal class GetCustomerNameAttribute : Attribute { }
internal class GetCustomerEMailAttribute : Attribute { }
internal class GetLicenseCodeAttribute : Attribute { }
internal class RegisterSoftwareAttribute : Attribute { }
internal class RenewLicenseCodeAttribute : Attribute { }
internal class GetCurrentActivationDateAttribute : Attribute { }
internal class GetCurrentRegistrationDateAttribute : Attribute { }
internal class GetFirstRegistrationDateAttribute : Attribute { }
internal class GetOrderDateAttribute : Attribute { }
internal class GetLicenseExpirationDateAttribute : Attribute { }
internal class GetProtectionDateAttribute : Attribute { }
internal class GetSupportExpirationDateAttribute : Attribute { }
internal class GetSupportExpirationProductVersionAttribute : Attribute { }
internal class GetIntelliProtectorVersionAttribute : Attribute { }
internal class CreateRegistrationRequestCertificateAttribute : Attribute { }
internal class UseRegistrationResponseCertificateAttribute : Attribute { }
internal class SystemFunction1Attribute : Attribute { }
}
namespace IntelliProtectorService
{
internal class IntelliProtector
{
public static double Version_2_5()
{
return 2.5f;
}
#if DEBUG
public static bool IsInDebugMode()
{
return true;
}
#endif
public enum enUnitDimension
{
eudMinutes,
eudHours,
eudDays,
eudWeeks,
eudMonths
};
private class Init32
{
[DllImport("JitHookCore.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "Init")]
public static extern void Init();
};
private class Init64
{
[DllImport("JitHookCoreX64.dll", CallingConvention = CallingConvention.Cdecl, EntryPoint = "Init")]
public static extern void Init();
};
public static bool Init()
{
try
{
bool tryLoadX64 = false;
try
{
Init32.Init();
}
catch (BadImageFormatException)
{
tryLoadX64 = true;
}
if (tryLoadX64)
{
try
{
Init64.Init();
}
catch (BadImageFormatException)
{
return false;
}
}
return true;
}
catch (System.Exception)
{
return true;
}
}
#region GetBuyNowLink
[attributes.GetBuyNowLinkAttribute]
public static String GetBuyNowLink()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetBuyNowLinkTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetBuyNowLinkTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region IsSoftwareProtected
[attributes.IsSoftwareProtected]
public static bool IsSoftwareProtected()
{
UInt64 address = 0;
object[] obj = new object[] { false };
Type tp = typeof(netprotector.api.dVoid_BoolParam);
IsSoftwareProtectedTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void IsSoftwareProtectedTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(bool))
return;
obj[0] = false;
}
#endregion
#region IsSoftwareRegistered
[attributes.IsSoftwareRegistered]
public static bool IsSoftwareRegistered()
{
UInt64 address = 0;
object[] obj = new object[] { false };
Type tp = typeof(netprotector.api.dVoid_BoolParam);
IsSoftwareRegisteredTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void IsSoftwareRegisteredTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(bool))
return;
obj[0] = false;
}
#endregion
#region GetTrialDaysCount
[attributes.GetTrialDaysCount]
public static int GetTrialDaysCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetTrialDaysCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
protected static void GetTrialDaysCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetTrialUnitsCount
[attributes.GetTrialUnitsCount]
public static int GetTrialUnitsCount(int dimensions)
{
UInt64 address = 0;
object[] obj = new object[] { (int)0, dimensions };
Type tp = typeof(netprotector.api.dVoid_2IntParam);
GetTrialUnitsCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetTrialUnitsCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) && obj[1].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetTrialDaysLeftCount
[attributes.GetTrialDaysLeftCount]
public static int GetTrialDaysLeftCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetTrialDaysLeftCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetTrialDaysLeftCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetTrialUnitsLeftCount
[attributes.GetTrialUnitsLeftCount]
public static int GetTrialUnitsLeftCount(int dimension)
{
UInt64 address = 0;
object[] obj = new object[] { (int)0, dimension };
Type tp = typeof(netprotector.api.dVoid_2IntParam);
GetTrialUnitsLeftCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetTrialUnitsLeftCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) && obj[1].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetTrialLaunchesCount
[attributes.GetTrialLaunchesCount]
public static int GetTrialLaunchesCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetTrialLaunchesCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetTrialLaunchesCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetTrialLaunchesLeftCount
[attributes.GetTrialLaunchesLeftCount]
public static int GetTrialLaunchesLeftCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetTrialLaunchesLeftCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetTrialLaunchesLeftCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region ShowRegistrationWindow
[attributes.ShowRegistrationWindow]
public static void ShowRegistrationWindow()
{
UInt64 address = 0;
Type tp = typeof(netprotector.api.dVoid_NoParams);
ShowRegistrationWindowTest(address, null, tp);
}
[attributes.Encrypt]
public static void ShowRegistrationWindowTest(UInt64 address, object[] obj, Type delegateType)
{
}
#endregion
#region IsTrialElapsed
[attributes.IsTrialElapsed]
public static bool IsTrialElapsed()
{
UInt64 address = 0;
object[] obj = new object[] { false };
Type tp = typeof(netprotector.api.dVoid_BoolParam);
IsTrialElapsedTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void IsTrialElapsedTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(bool))
return;
obj[0] = false;
}
#endregion
#region GetRenewalPurchaseLink
[attributes.GetRenewalPurchaseLink]
public static String GetRenewalPurchaseLink()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetRenewalPurchaseLinkTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetRenewalPurchaseLinkTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region GetLicenseType
[attributes.GetLicenseType]
public static int GetLicenseType()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetLicenseTypeTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetLicenseTypeTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetLicenseExpirationDaysCount
[attributes.GetLicenseExpirationDaysCount]
public static int GetLicenseExpirationDaysCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetLicenseExpirationDaysCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetLicenseExpirationDaysCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetLicenseExpirationDaysLeftCount
[attributes.GetLicenseExpirationDaysLeftCount]
public static int GetLicenseExpirationDaysLeftCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetLicenseExpirationDaysLeftTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetLicenseExpirationDaysLeftTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetSupportExpirationDaysCount
[attributes.GetSupportExpirationDaysCount]
public static int GetSupportExpirationDaysCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetSupportExpirationDaysCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetSupportExpirationDaysCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetSupportExpirationDaysLeftCount
[attributes.GetSupportExpirationDaysLeftCount]
public static int GetSupportExpirationDaysLeftCount()
{
UInt64 address = 0;
object[] obj = new object[] { (int)0 };
Type tp = typeof(netprotector.api.dVoid_IntParam);
GetSupportExpirationDaysLeftCountTest(address, obj, tp);
return (int)obj[0];
}
[attributes.Encrypt]
public static void GetSupportExpirationDaysLeftCountTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int))
return;
obj[0] = -1;
}
#endregion
#region GetCurrentProductVersion
[attributes.GetCurrentProductVersion]
public static String GetCurrentProductVersion()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetCurrentProductVersionTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetCurrentProductVersionTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region GetCustomerName
[attributes.GetCustomerName]
public static String GetCustomerName()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetCustomerNameTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetCustomerNameTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region GetCustomerEMail
[attributes.GetCustomerEMail]
public static String GetCustomerEMail()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetCustomerEMailTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetCustomerEMailTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region GetLicenseCode
[attributes.GetLicenseCode]
public static String GetLicenseCode()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetLicenseCodeTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetLicenseCodeTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region RegisterSoftware
[attributes.RegisterSoftware]
public static bool RegisterSoftware(string licenseKey)
{
UInt64 address = 0;
bool res = false;
object[] obj = new object[] { res, licenseKey, licenseKey.Length };
Type tp = typeof(netprotector.api.dBool_StringParam);
RegisterSoftwareTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void RegisterSoftwareTest(UInt64 address, object[] obj, Type delegateType)
{
obj[0] = false;
}
#endregion
#region RenewLicenseCode
[attributes.RenewLicenseCode]
public static bool RenewLicenseCode(string renewalCode)
{
UInt64 address = 0;
object[] obj = new object[] { false, renewalCode, renewalCode.Length };
Type tp = typeof(netprotector.api.dBool_StringParam);
RenewLicenseCodeTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void RenewLicenseCodeTest(UInt64 address, object[] obj, Type delegateType)
{
obj[0] = false;
}
#endregion
#region GetCurrentActivationDate
[attributes.GetCurrentActivationDate]
public static DateTime GetCurrentActivationDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetCurrentActivationDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetCurrentActivationDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetCurrentRegistrationDate
[attributes.GetCurrentRegistrationDate]
public static DateTime GetCurrentRegistrationDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetCurrentRegistrationDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetCurrentRegistrationDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetFirstRegistrationDate
[attributes.GetFirstRegistrationDate]
public static DateTime GetFirstRegistrationDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetFirstRegistrationDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetFirstRegistrationDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetOrderDate
[attributes.GetOrderDate]
public static DateTime GetOrderDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetOrderDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetOrderDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetLicenseExpirationDate
[attributes.GetLicenseExpirationDate]
public static DateTime GetLicenseExpirationDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetLicenseExpirationDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetLicenseExpirationDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetProtectionDate
[attributes.GetProtectionDate]
public static DateTime GetProtectionDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetProtectionDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetProtectionDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetSupportExpirationDate
[attributes.GetSupportExpirationDate]
public static DateTime GetSupportExpirationDate()
{
UInt64 address = 0;
object[] obj = new object[] { 0, 0, 0, 0, 0 };
Type tp = typeof(netprotector.api.dVoid_5IntParams);
GetSupportExpirationDateTest(address, obj, tp);
if ((int)obj[0] < 0)
return DateTime.MinValue;
return new DateTime((int)obj[0], (int)obj[1], (int)obj[2], (int)obj[3], (int)obj[4], 0);
}
[attributes.Encrypt]
protected static void GetSupportExpirationDateTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(int) ||
obj[1].GetType() != typeof(int) ||
obj[2].GetType() != typeof(int) ||
obj[3].GetType() != typeof(int) ||
obj[4].GetType() != typeof(int))
{
return;
}
obj[0] = -1;
obj[1] = -1;
obj[2] = -1;
obj[3] = -1;
obj[4] = -1;
}
#endregion
#region GetSupportExpirationProductVersion
[attributes.GetSupportExpirationProductVersion]
public static String GetSupportExpirationProductVersion()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetSupportExpirationProductVersionTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetSupportExpirationProductVersionTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region GetIntelliProtectorVersion
[attributes.GetIntelliProtectorVersion]
public static String GetIntelliProtectorVersion()
{
UInt64 address = 0;
int ciMinLength = 0;
int ciMaxLength = 1024;
StringBuilder rValue = new StringBuilder(ciMaxLength);
object[] obj = new object[] { rValue, ciMaxLength - ciMinLength };
Type tp = typeof(netprotector.api.dVoid_StringBuilderParam);
GetIntelliProtectorVersionTest(address, obj, tp);
return rValue.ToString();
}
[attributes.Encrypt]
protected static void GetIntelliProtectorVersionTest(UInt64 address, object[] obj, Type delegateType)
{
if (obj[0].GetType() != typeof(StringBuilder))
return;
string strLink = "";
if ((int)obj[1] >= strLink.Length)
((StringBuilder)obj[0]).Append(strLink);
}
#endregion
#region CreateRegistrationRequestCertificate
[attributes.CreateRegistrationRequestCertificate]
public static bool CreateRegistrationRequestCertificate(string path, string licenseCode)
{
UInt64 address = 0;
bool res = false;
object[] obj = new object[] { res, path, licenseCode };
Type tp = typeof(netprotector.api.dBool_StringStringParam);
CreateRegistrationRequestCertificateTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void CreateRegistrationRequestCertificateTest(UInt64 address, object[] obj, Type delegateType)
{
obj[0] = true;
}
#endregion
#region UseRegistrationResponseCertificate
[attributes.UseRegistrationResponseCertificate]
public static bool UseRegistrationResponseCertificate(string path)
{
UInt64 address = 0;
bool res = false;
object[] obj = new object[] { res, path };
Type tp = typeof(netprotector.api.dBool_StringOnlyParam);
UseRegistrationResponseCertificateTest(address, obj, tp);
return (bool)obj[0];
}
[attributes.Encrypt]
protected static void UseRegistrationResponseCertificateTest(UInt64 address, object[] obj, Type delegateType)
{
obj[0] = true;
}
#endregion
#region SystemFunction1
[attributes.SystemFunction1]
protected static void SystemFunction1(UInt64 address, object[] parameters, Type delegateType)
{
Delegate delegateFunc = Marshal.GetDelegateForFunctionPointer((IntPtr)address, delegateType);
delegateFunc.DynamicInvoke(parameters);
}
#endregion
}
}

View File

@@ -0,0 +1,26 @@
using System;
using System.Windows.Forms;
using IntelliProtectorService;
namespace VS2010SampleNET
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
if (!IntelliProtector.Init())
{
MessageBox.Show(@"Cannot load protector module");
return;
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FormMain());
}
}
}

View File

@@ -0,0 +1,35 @@
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("VS2010SampleNET")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("VS2010SampleNET")]
[assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("91a67379-6bfb-45b4-ae9d-b22210819234")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.6.0.0")]
[assembly: AssemblyFileVersion("2.6.0.0")]

View File

@@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace VS2010SampleNET.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("VS2010SampleNET.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace VS2010SampleNET.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,35 @@
<Configuration>
<SettingsComponent>
<string />
<integer />
<boolean>
<setting name="SolutionAnalysisEnabled">False</setting>
</boolean>
</SettingsComponent>
<RecentFiles>
<RecentFiles>
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormMain.cs" caret="7517" fromTop="23" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormRegistrationByEmail.Designer.cs" caret="16" fromTop="0" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:IntelliProtector.cs" caret="27811" fromTop="33" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormRegistrationByEmail.cs" caret="1161" fromTop="12" />
</RecentFiles>
<RecentEdits>
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormMain.cs" caret="7744" fromTop="27" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormMain.cs" caret="7587" fromTop="27" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormMain.cs" caret="7514" fromTop="23" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormRegistrationByEmail.Designer.cs" caret="16" fromTop="0" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormRegistrationByEmail.cs" caret="79" fromTop="4" />
<File id="4F0D7244-BACD-44B6-AB93-9FA89A867B59/f:FormRegistrationByEmail.cs" caret="1161" fromTop="12" />
</RecentEdits>
</RecentFiles>
<NAntValidationSettings>
<NAntPath value="" />
</NAntValidationSettings>
<UnitTestRunner>
<Providers />
</UnitTestRunner>
<UnitTestRunnerNUnit>
<NUnitInstallDir>C:\Program Files (x86)\NUnit 2.4.8\bin\net-2.0\</NUnitInstallDir>
<UseAddins>Never</UseAddins>
</UnitTestRunnerNUnit>
</Configuration>

View File

@@ -0,0 +1,152 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4F0D7244-BACD-44B6-AB93-9FA89A867B59}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VS2010SampleNET</RootNamespace>
<AssemblyName>VS2010SampleNET</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<TargetFrameworkProfile />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="FormMain.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormMain.Designer.cs">
<DependentUpon>FormMain.cs</DependentUpon>
</Compile>
<Compile Include="FormRegistrationByEmail.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FormRegistrationByEmail.Designer.cs">
<DependentUpon>FormRegistrationByEmail.cs</DependentUpon>
</Compile>
<Compile Include="IntelliProtector.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="FormMain.resx">
<DependentUpon>FormMain.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="FormRegistrationByEmail.resx">
<DependentUpon>FormRegistrationByEmail.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<PublishUrlHistory />
<InstallUrlHistory />
<SupportUrlHistory />
<UpdateUrlHistory />
<BootstrapperUrlHistory />
<ErrorReportUrlHistory />
<FallbackCulture>en-US</FallbackCulture>
<VerifyUploadedFiles>false</VerifyUploadedFiles>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,26 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VS2010SampleNET", "VS2010SampleNET.csproj", "{4F0D7244-BACD-44B6-AB93-9FA89A867B59}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Debug|x86.ActiveCfg = Debug|x86
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Debug|x86.Build.0 = Debug|x86
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Release|Any CPU.Build.0 = Release|Any CPU
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Release|x86.ActiveCfg = Release|x86
{4F0D7244-BACD-44B6-AB93-9FA89A867B59}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,3 @@
<?xml version="1.0"?>
<configuration>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>