Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
1 namespace OpenHardwareMonitor.GUI {
2 partial class PortForm {
4 /// Required designer variable.
6 private System.ComponentModel.IContainer components = null;
9 /// Clean up any resources being used.
11 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
12 protected override void Dispose(bool disposing) {
13 if (disposing && (components != null)) {
16 base.Dispose(disposing);
19 #region Windows Form Designer generated code
22 /// Required method for Designer support - do not modify
23 /// the contents of this method with the code editor.
25 private void InitializeComponent() {
26 this.portOKButton = new System.Windows.Forms.Button();
27 this.portCancelButton = new System.Windows.Forms.Button();
28 this.label1 = new System.Windows.Forms.Label();
29 this.label2 = new System.Windows.Forms.Label();
30 this.label3 = new System.Windows.Forms.Label();
31 this.label4 = new System.Windows.Forms.Label();
32 this.webServerLinkLabel = new System.Windows.Forms.LinkLabel();
33 this.portNumericUpDn = new System.Windows.Forms.NumericUpDown();
34 this.label5 = new System.Windows.Forms.Label();
35 ((System.ComponentModel.ISupportInitialize)(this.portNumericUpDn)).BeginInit();
40 this.portOKButton.Location = new System.Drawing.Point(244, 137);
41 this.portOKButton.Name = "portOKButton";
42 this.portOKButton.Size = new System.Drawing.Size(75, 23);
43 this.portOKButton.TabIndex = 0;
44 this.portOKButton.Text = "OK";
45 this.portOKButton.UseVisualStyleBackColor = true;
46 this.portOKButton.Click += new System.EventHandler(this.portOKButton_Click);
50 this.portCancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
51 this.portCancelButton.Location = new System.Drawing.Point(162, 137);
52 this.portCancelButton.Name = "portCancelButton";
53 this.portCancelButton.Size = new System.Drawing.Size(75, 23);
54 this.portCancelButton.TabIndex = 1;
55 this.portCancelButton.Text = "Cancel";
56 this.portCancelButton.UseVisualStyleBackColor = true;
57 this.portCancelButton.Click += new System.EventHandler(this.portCancelButton_Click);
61 this.label1.AutoSize = true;
62 this.label1.Location = new System.Drawing.Point(13, 106);
63 this.label1.Name = "label1";
64 this.label1.Size = new System.Drawing.Size(377, 13);
65 this.label1.TabIndex = 3;
66 this.label1.Text = "Note: You will need to open the port in firewall settings of the operating system" +
71 this.label2.AutoSize = true;
72 this.label2.Location = new System.Drawing.Point(13, 9);
73 this.label2.Name = "label2";
74 this.label2.Size = new System.Drawing.Size(193, 13);
75 this.label2.TabIndex = 4;
76 this.label2.Text = "Port number for the remote web server:";
80 this.label3.AutoSize = true;
81 this.label3.Location = new System.Drawing.Point(13, 39);
82 this.label3.Name = "label3";
83 this.label3.Size = new System.Drawing.Size(443, 13);
84 this.label3.TabIndex = 5;
85 this.label3.Text = "If the web server is running then it will need to be restarted for the port chang" +
90 this.label4.AutoSize = true;
91 this.label4.Location = new System.Drawing.Point(13, 62);
92 this.label4.Name = "label4";
93 this.label4.Size = new System.Drawing.Size(262, 13);
94 this.label4.TabIndex = 6;
95 this.label4.Text = "The web server will be accessible from the browser at ";
99 this.webServerLinkLabel.AutoSize = true;
100 this.webServerLinkLabel.Location = new System.Drawing.Point(269, 62);
101 this.webServerLinkLabel.Name = "webServerLinkLabel";
102 this.webServerLinkLabel.Size = new System.Drawing.Size(55, 13);
103 this.webServerLinkLabel.TabIndex = 7;
104 this.webServerLinkLabel.TabStop = true;
105 this.webServerLinkLabel.Text = "linkLabel1";
106 this.webServerLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.webServerLinkLabel_LinkClicked);
110 this.portNumericUpDn.Location = new System.Drawing.Point(208, 7);
111 this.portNumericUpDn.Maximum = new decimal(new int[] {
116 this.portNumericUpDn.Minimum = new decimal(new int[] {
121 this.portNumericUpDn.Name = "portNumericUpDn";
122 this.portNumericUpDn.Size = new System.Drawing.Size(75, 20);
123 this.portNumericUpDn.TabIndex = 8;
124 this.portNumericUpDn.Value = new decimal(new int[] {
129 this.portNumericUpDn.ValueChanged += new System.EventHandler(this.portNumericUpDn_ValueChanged);
133 this.label5.AutoSize = true;
134 this.label5.Location = new System.Drawing.Point(13, 84);
135 this.label5.Name = "label5";
136 this.label5.Size = new System.Drawing.Size(304, 13);
137 this.label5.TabIndex = 9;
138 this.label5.Text = "You will have to start the server by clicking Run from the menu.";
142 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
143 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
144 this.CancelButton = this.portCancelButton;
145 this.ClientSize = new System.Drawing.Size(466, 170);
146 this.Controls.Add(this.label5);
147 this.Controls.Add(this.portNumericUpDn);
148 this.Controls.Add(this.webServerLinkLabel);
149 this.Controls.Add(this.label4);
150 this.Controls.Add(this.label3);
151 this.Controls.Add(this.label2);
152 this.Controls.Add(this.label1);
153 this.Controls.Add(this.portCancelButton);
154 this.Controls.Add(this.portOKButton);
155 this.MaximizeBox = false;
156 this.MinimizeBox = false;
157 this.Name = "PortForm";
158 this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
159 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
160 this.Text = "Set Port";
161 this.Load += new System.EventHandler(this.PortForm_Load);
162 ((System.ComponentModel.ISupportInitialize)(this.portNumericUpDn)).EndInit();
163 this.ResumeLayout(false);
164 this.PerformLayout();
170 private System.Windows.Forms.Button portOKButton;
171 private System.Windows.Forms.Button portCancelButton;
172 private System.Windows.Forms.Label label1;
173 private System.Windows.Forms.Label label2;
174 private System.Windows.Forms.Label label3;
175 private System.Windows.Forms.Label label4;
176 private System.Windows.Forms.LinkLabel webServerLinkLabel;
177 private System.Windows.Forms.NumericUpDown portNumericUpDn;
178 private System.Windows.Forms.Label label5;