├── KillSX ├── bin │ └── Debug │ │ ├── KillSX.exe │ │ ├── KillSX.pdb │ │ ├── KillSX.vshost.exe │ │ ├── KillSX.vshost.exe.manifest │ │ └── Project1.vshost.exe.manifest ├── 24-trash bin full 02.ico ├── obj │ └── x86 │ │ └── Debug │ │ ├── KillSX.exe │ │ ├── KillSX.pdb │ │ ├── Interop.NATUPNPLib.dll │ │ ├── Interop.NETCONLib.dll │ │ ├── KillSX.MainFm.resources │ │ ├── KillSX.csproj.GenerateResource.Cache │ │ ├── KillSX.csproj.ResolveComReference.cache │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ └── KillSX.csproj.FileListAbsolute.txt ├── KillSX.csproj.user ├── Program.cs ├── KillSX.cs ├── KillSX.csproj ├── MainFm.cs ├── MainFm.resx └── MainFm.Designer.cs ├── README.md └── KillSX.sln /KillSX/bin/Debug/KillSX.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/bin/Debug/KillSX.exe -------------------------------------------------------------------------------- /KillSX/bin/Debug/KillSX.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/bin/Debug/KillSX.pdb -------------------------------------------------------------------------------- /KillSX/24-trash bin full 02.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/24-trash bin full 02.ico -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/KillSX.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/KillSX.exe -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/KillSX.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/KillSX.pdb -------------------------------------------------------------------------------- /KillSX/bin/Debug/KillSX.vshost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/bin/Debug/KillSX.vshost.exe -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/Interop.NATUPNPLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/Interop.NATUPNPLib.dll -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/Interop.NETCONLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/Interop.NETCONLib.dll -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/KillSX.MainFm.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/KillSX.MainFm.resources -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tools of Wifi-Sharing 2 | Wifi Sharing for Windows 3 | 4 | More details will be found in http://www.cnblogs.com/KC-Mei/p/4603570.html 5 | -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/KillSX.csproj.GenerateResource.Cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/KillSX.csproj.GenerateResource.Cache -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/KillSX.csproj.ResolveComReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/KillSX.csproj.ResolveComReference.cache -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Blz-Galaxy/Tools-Wifi-Sharing/HEAD/KillSX/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /KillSX/KillSX.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | singleNet 5 | 6 | -------------------------------------------------------------------------------- /KillSX/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace KillSX 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// 应用程序的主入口点。 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new MainFm()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /KillSX/bin/Debug/KillSX.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /KillSX/bin/Debug/Project1.vshost.exe.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /KillSX/obj/x86/Debug/KillSX.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | D:\Workspace\KillSX\KillSX\bin\Debug\KillSX.exe 2 | D:\Workspace\KillSX\KillSX\bin\Debug\KillSX.pdb 3 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\Interop.NATUPNPLib.dll 4 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\Interop.NETCONLib.dll 5 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\KillSX.csproj.ResolveComReference.cache 6 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\KillSX.MainFm.resources 7 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\KillSX.csproj.GenerateResource.Cache 8 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\KillSX.exe 9 | D:\Workspace\KillSX\KillSX\obj\x86\Debug\KillSX.pdb 10 | -------------------------------------------------------------------------------- /KillSX.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KillSX", "KillSX\KillSX.csproj", "{D8CD1B4D-BC91-419C-A6BC-50BECDFF41EC}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {D8CD1B4D-BC91-419C-A6BC-50BECDFF41EC}.Debug|x86.ActiveCfg = Debug|x86 13 | {D8CD1B4D-BC91-419C-A6BC-50BECDFF41EC}.Debug|x86.Build.0 = Debug|x86 14 | {D8CD1B4D-BC91-419C-A6BC-50BECDFF41EC}.Release|x86.ActiveCfg = Release|x86 15 | {D8CD1B4D-BC91-419C-A6BC-50BECDFF41EC}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /KillSX/KillSX.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Diagnostics; 6 | using System.Windows.Forms; 7 | 8 | namespace KillSX 9 | { 10 | class KillSX 11 | { 12 | public int GetProcessInfo(string ProcessName) 13 | { 14 | MessageBox.Show("正在查找" + ProcessName); 15 | Process[] processes = Process.GetProcessesByName(ProcessName); 16 | foreach (Process instance in processes) 17 | { 18 | try 19 | { 20 | if (instance.ProcessName == ProcessName) 21 | return instance.Id; 22 | } 23 | catch { } 24 | } 25 | return -1; 26 | } 27 | 28 | 29 | 30 | #region 结束指定进程 31 | /// 32 | /// 结束指定进程 33 | /// 34 | /// 进程的 Process ID 35 | public static void EndProcess(int pid) 36 | { 37 | if (pid == -1) 38 | { 39 | MessageBox.Show("未能找到指定程序!"); 40 | return; 41 | } 42 | try 43 | { 44 | Process process = Process.GetProcessById(pid); 45 | process.Kill(); 46 | MessageBox.Show("成功关闭指定程序!"); 47 | } 48 | catch { } 49 | } 50 | #endregion 51 | 52 | //static void Main(string[] args) 53 | //{ 54 | // KillSX k = new KillSX(); 55 | // int shanxun = k.GetProcessInfo(args[0]); 56 | // EndProcess(shanxun); 57 | //} 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /KillSX/KillSX.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {D8CD1B4D-BC91-419C-A6BC-50BECDFF41EC} 9 | Exe 10 | Properties 11 | KillSX 12 | KillSX 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 24-trash bin full 02.ico 38 | 39 | 40 | 41 | 42 | Form 43 | 44 | 45 | MainFm.cs 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | MainFm.cs 62 | 63 | 64 | 65 | 66 | {1C565858-F302-471E-B409-F180AA4ABEC6} 67 | 1 68 | 0 69 | 0 70 | tlbimp 71 | False 72 | True 73 | 74 | 75 | {43E734CA-043D-4A70-9A2C-A8F254063D91} 76 | 1 77 | 0 78 | 0 79 | tlbimp 80 | False 81 | True 82 | 83 | 84 | 85 | 92 | -------------------------------------------------------------------------------- /KillSX/MainFm.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | using NETCONLib; 10 | using System.Text.RegularExpressions; 11 | 12 | namespace KillSX 13 | { 14 | public partial class MainFm : Form 15 | { 16 | private System.Diagnostics.Process _pCmd; 17 | private string _strWrite; 18 | 19 | public MainFm() 20 | { 21 | InitializeComponent(); 22 | _pCmd = new System.Diagnostics.Process(); 23 | _pCmd.StartInfo.FileName = "cmd.exe"; 24 | _pCmd.StartInfo.UseShellExecute = false; 25 | _pCmd.StartInfo.RedirectStandardOutput = true; 26 | _pCmd.StartInfo.RedirectStandardInput = true; 27 | _pCmd.StartInfo.CreateNoWindow = true; 28 | _pCmd.Start(); 29 | } 30 | 31 | private void button1_Click(object sender, EventArgs e) 32 | { 33 | Regex reg = new Regex(@"[\u4e00-\u9fa5]");//正则表达式 34 | if (reg.IsMatch(textBox1.Text) || reg.IsMatch(textBox2.Text)) 35 | { 36 | MessageBox.Show("不能含有汉字"); 37 | return; 38 | } 39 | if (textBox2.Text.Length < 8) 40 | { 41 | MessageBox.Show("密码8位以上"); 42 | return; 43 | } 44 | 45 | _strWrite = String.Format("netsh wlan set hostednetwork mode=allow ssid={0} key={1}", this.textBox1.Text, this.textBox2.Text); 46 | _pCmd.StandardInput.WriteLine(_strWrite); 47 | } 48 | 49 | private void button2_Click(object sender, EventArgs e) 50 | { 51 | KillSX k = new KillSX(); 52 | int shanxun = k.GetProcessInfo(this.textBox6.Text); 53 | KillSX.EndProcess(shanxun); 54 | } 55 | 56 | private void button3_Click(object sender, EventArgs e) 57 | { 58 | _pCmd.StandardInput.WriteLine("netsh wlan start hostednetwork"); 59 | } 60 | 61 | private void button4_Click(object sender, EventArgs e) 62 | { 63 | try 64 | { 65 | string connectionToShare = this.textBox3.Text; // 被共享的网络连接 66 | string sharedForConnection = this.textBox4.Text; // 需要共享的网络连接 67 | 68 | NetSharingManager manager = new NetSharingManager(); 69 | var connections = manager.EnumEveryConnection; 70 | 71 | foreach (INetConnection c in connections) 72 | { 73 | var props = manager.NetConnectionProps[c]; 74 | var sharingCfg = manager.INetSharingConfigurationForINetConnection[c]; 75 | if (props.Name == connectionToShare) 76 | { 77 | sharingCfg.EnableSharing(tagSHARINGCONNECTIONTYPE.ICSSHARINGTYPE_PUBLIC); 78 | } 79 | else if (props.Name == sharedForConnection) 80 | { 81 | sharingCfg.EnableSharing(tagSHARINGCONNECTIONTYPE.ICSSHARINGTYPE_PRIVATE); 82 | } 83 | } 84 | } 85 | catch 86 | { 87 | MessageBox.Show("请打开网络和共享中心·查看是不是已经连接Internet!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); 88 | } 89 | } 90 | 91 | private void button5_Click(object sender, EventArgs e) 92 | { 93 | _strWrite = String.Format("shutdown -s -t {0}", this.textBox5.Text); 94 | _pCmd.StandardInput.WriteLine(_strWrite); 95 | } 96 | 97 | private void button6_Click(object sender, EventArgs e) 98 | { 99 | _pCmd.StandardInput.WriteLine("netsh wlan stop hostednetwork"); 100 | } 101 | 102 | private void button7_Click(object sender, EventArgs e) 103 | { 104 | _pCmd.StandardInput.WriteLine("shutdown -a"); 105 | } 106 | 107 | private void label7_Click(object sender, EventArgs e) 108 | { 109 | System.Diagnostics.Process.Start("http://www.cnblogs.com/KC-Mei/"); 110 | } 111 | 112 | } 113 | } 114 | -------------------------------------------------------------------------------- /KillSX/MainFm.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 122 | 123 | AAABAAEAICAAAAAAAACoDAAAFgAAACgAAAAgAAAAQAAAAAEAGAAAAAAAgAwAAAAAAAAAAAAAAAAAAAAA 124 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 125 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 126 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEBQQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 127 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACtfkutfkutfkut 128 | fkuZaS6HVhOHVhMAAAAAAAAaGhoiIiIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 129 | AAAAAAAAAAAAAAAAAAAAAAAAAADEmHDEmHDSpYPHm3W/kWa2iFitfkujdD2ZaS6HVhOHVhMAAAArKys0 130 | NDU+Pj4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC1h1njuJ7b 131 | sJHSpoPIm3S/kWa1iFmtfkujdD2ZaS6QXyCHVhNMMw4AAAA9PT1GRkdQUE9YWFgAAAAAAAAAAAAAAAAA 132 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC1h1njuJ7bsJHSpoPIm3W+kWa2iFmtfkujdD2aaS6Q 133 | YB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AQEBAQEBAQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 172 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 173 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 174 | AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 175 | AAAAAAAAAAAAAAAAAAD///////AP///AAf//gAB//wAAH/8AAAf/AAAD/wAAAf4AAAH+AAAB/gAAA/4A 176 | AA/8AAB//AAAf/gAAD/wAAAf4AAAD8AAAAfgAAAD8AAAB/gAAA/4AAAf8AAAH/AAAB/wAAAf+AAAP/wA 177 | AH//AAH//8AH///wP////////////w== 178 | 179 | 180 | -------------------------------------------------------------------------------- /KillSX/MainFm.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace KillSX 2 | { 3 | partial class MainFm 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainFm)); 32 | this.button1 = new System.Windows.Forms.Button(); 33 | this.groupBox1 = new System.Windows.Forms.GroupBox(); 34 | this.textBox2 = new System.Windows.Forms.TextBox(); 35 | this.label2 = new System.Windows.Forms.Label(); 36 | this.textBox1 = new System.Windows.Forms.TextBox(); 37 | this.label1 = new System.Windows.Forms.Label(); 38 | this.button2 = new System.Windows.Forms.Button(); 39 | this.button3 = new System.Windows.Forms.Button(); 40 | this.button4 = new System.Windows.Forms.Button(); 41 | this.textBox3 = new System.Windows.Forms.TextBox(); 42 | this.label3 = new System.Windows.Forms.Label(); 43 | this.textBox4 = new System.Windows.Forms.TextBox(); 44 | this.label4 = new System.Windows.Forms.Label(); 45 | this.button5 = new System.Windows.Forms.Button(); 46 | this.label5 = new System.Windows.Forms.Label(); 47 | this.textBox5 = new System.Windows.Forms.TextBox(); 48 | this.button6 = new System.Windows.Forms.Button(); 49 | this.groupBox2 = new System.Windows.Forms.GroupBox(); 50 | this.button7 = new System.Windows.Forms.Button(); 51 | this.label6 = new System.Windows.Forms.Label(); 52 | this.textBox6 = new System.Windows.Forms.TextBox(); 53 | this.label7 = new System.Windows.Forms.Label(); 54 | this.groupBox1.SuspendLayout(); 55 | this.groupBox2.SuspendLayout(); 56 | this.SuspendLayout(); 57 | // 58 | // button1 59 | // 60 | this.button1.Location = new System.Drawing.Point(343, 25); 61 | this.button1.Name = "button1"; 62 | this.button1.Size = new System.Drawing.Size(75, 23); 63 | this.button1.TabIndex = 0; 64 | this.button1.Text = "修改"; 65 | this.button1.UseVisualStyleBackColor = true; 66 | this.button1.Click += new System.EventHandler(this.button1_Click); 67 | // 68 | // groupBox1 69 | // 70 | this.groupBox1.Controls.Add(this.textBox2); 71 | this.groupBox1.Controls.Add(this.label2); 72 | this.groupBox1.Controls.Add(this.textBox1); 73 | this.groupBox1.Controls.Add(this.label1); 74 | this.groupBox1.Controls.Add(this.button1); 75 | this.groupBox1.Location = new System.Drawing.Point(12, 12); 76 | this.groupBox1.Name = "groupBox1"; 77 | this.groupBox1.Size = new System.Drawing.Size(430, 61); 78 | this.groupBox1.TabIndex = 1; 79 | this.groupBox1.TabStop = false; 80 | this.groupBox1.Text = "首次设置"; 81 | // 82 | // textBox2 83 | // 84 | this.textBox2.Location = new System.Drawing.Point(228, 26); 85 | this.textBox2.Name = "textBox2"; 86 | this.textBox2.Size = new System.Drawing.Size(100, 21); 87 | this.textBox2.TabIndex = 4; 88 | // 89 | // label2 90 | // 91 | this.label2.AutoSize = true; 92 | this.label2.Location = new System.Drawing.Point(160, 30); 93 | this.label2.Name = "label2"; 94 | this.label2.Size = new System.Drawing.Size(59, 12); 95 | this.label2.TabIndex = 3; 96 | this.label2.Text = "Password:"; 97 | // 98 | // textBox1 99 | // 100 | this.textBox1.Location = new System.Drawing.Point(51, 26); 101 | this.textBox1.Name = "textBox1"; 102 | this.textBox1.Size = new System.Drawing.Size(100, 21); 103 | this.textBox1.TabIndex = 2; 104 | // 105 | // label1 106 | // 107 | this.label1.AutoSize = true; 108 | this.label1.Location = new System.Drawing.Point(7, 30); 109 | this.label1.Name = "label1"; 110 | this.label1.Size = new System.Drawing.Size(35, 12); 111 | this.label1.TabIndex = 1; 112 | this.label1.Text = "SSID:"; 113 | // 114 | // button2 115 | // 116 | this.button2.Location = new System.Drawing.Point(6, 22); 117 | this.button2.Name = "button2"; 118 | this.button2.Size = new System.Drawing.Size(75, 23); 119 | this.button2.TabIndex = 5; 120 | this.button2.Text = "1.关闭闪讯"; 121 | this.button2.UseVisualStyleBackColor = true; 122 | this.button2.Click += new System.EventHandler(this.button2_Click); 123 | // 124 | // button3 125 | // 126 | this.button3.Location = new System.Drawing.Point(6, 51); 127 | this.button3.Name = "button3"; 128 | this.button3.Size = new System.Drawing.Size(75, 23); 129 | this.button3.TabIndex = 6; 130 | this.button3.Text = "2.启动Wifi"; 131 | this.button3.UseVisualStyleBackColor = true; 132 | this.button3.Click += new System.EventHandler(this.button3_Click); 133 | // 134 | // button4 135 | // 136 | this.button4.Location = new System.Drawing.Point(6, 80); 137 | this.button4.Name = "button4"; 138 | this.button4.Size = new System.Drawing.Size(75, 23); 139 | this.button4.TabIndex = 7; 140 | this.button4.Text = "3.设置共享"; 141 | this.button4.UseVisualStyleBackColor = true; 142 | this.button4.Click += new System.EventHandler(this.button4_Click); 143 | // 144 | // textBox3 145 | // 146 | this.textBox3.Location = new System.Drawing.Point(183, 81); 147 | this.textBox3.Name = "textBox3"; 148 | this.textBox3.Size = new System.Drawing.Size(94, 21); 149 | this.textBox3.TabIndex = 6; 150 | this.textBox3.Text = "singleNetPPPoE"; 151 | // 152 | // label3 153 | // 154 | this.label3.AutoSize = true; 155 | this.label3.Location = new System.Drawing.Point(143, 85); 156 | this.label3.Name = "label3"; 157 | this.label3.Size = new System.Drawing.Size(41, 12); 158 | this.label3.TabIndex = 5; 159 | this.label3.Text = "共享:"; 160 | // 161 | // textBox4 162 | // 163 | this.textBox4.Location = new System.Drawing.Point(318, 81); 164 | this.textBox4.Name = "textBox4"; 165 | this.textBox4.Size = new System.Drawing.Size(100, 21); 166 | this.textBox4.TabIndex = 9; 167 | this.textBox4.Text = "无线网络连接 2"; 168 | // 169 | // label4 170 | // 171 | this.label4.AutoSize = true; 172 | this.label4.Location = new System.Drawing.Point(287, 85); 173 | this.label4.Name = "label4"; 174 | this.label4.Size = new System.Drawing.Size(29, 12); 175 | this.label4.TabIndex = 8; 176 | this.label4.Text = "到:"; 177 | // 178 | // button5 179 | // 180 | this.button5.Location = new System.Drawing.Point(6, 109); 181 | this.button5.Name = "button5"; 182 | this.button5.Size = new System.Drawing.Size(75, 23); 183 | this.button5.TabIndex = 10; 184 | this.button5.Text = "4.自动关机"; 185 | this.button5.UseVisualStyleBackColor = true; 186 | this.button5.Click += new System.EventHandler(this.button5_Click); 187 | // 188 | // label5 189 | // 190 | this.label5.AutoSize = true; 191 | this.label5.Location = new System.Drawing.Point(143, 114); 192 | this.label5.Name = "label5"; 193 | this.label5.Size = new System.Drawing.Size(89, 12); 194 | this.label5.TabIndex = 11; 195 | this.label5.Text = "倒计时(秒):"; 196 | // 197 | // textBox5 198 | // 199 | this.textBox5.Location = new System.Drawing.Point(228, 110); 200 | this.textBox5.Name = "textBox5"; 201 | this.textBox5.Size = new System.Drawing.Size(49, 21); 202 | this.textBox5.TabIndex = 12; 203 | this.textBox5.Text = "3600"; 204 | // 205 | // button6 206 | // 207 | this.button6.Location = new System.Drawing.Point(6, 138); 208 | this.button6.Name = "button6"; 209 | this.button6.Size = new System.Drawing.Size(75, 23); 210 | this.button6.TabIndex = 13; 211 | this.button6.Text = "5.关闭Wifi"; 212 | this.button6.UseVisualStyleBackColor = true; 213 | this.button6.Click += new System.EventHandler(this.button6_Click); 214 | // 215 | // groupBox2 216 | // 217 | this.groupBox2.Controls.Add(this.button7); 218 | this.groupBox2.Controls.Add(this.button6); 219 | this.groupBox2.Controls.Add(this.button2); 220 | this.groupBox2.Controls.Add(this.textBox5); 221 | this.groupBox2.Controls.Add(this.button3); 222 | this.groupBox2.Controls.Add(this.label5); 223 | this.groupBox2.Controls.Add(this.button4); 224 | this.groupBox2.Controls.Add(this.button5); 225 | this.groupBox2.Controls.Add(this.label6); 226 | this.groupBox2.Controls.Add(this.label3); 227 | this.groupBox2.Controls.Add(this.textBox4); 228 | this.groupBox2.Controls.Add(this.textBox6); 229 | this.groupBox2.Controls.Add(this.textBox3); 230 | this.groupBox2.Controls.Add(this.label4); 231 | this.groupBox2.Location = new System.Drawing.Point(12, 79); 232 | this.groupBox2.Name = "groupBox2"; 233 | this.groupBox2.Size = new System.Drawing.Size(430, 168); 234 | this.groupBox2.TabIndex = 14; 235 | this.groupBox2.TabStop = false; 236 | this.groupBox2.Text = "常用功能"; 237 | // 238 | // button7 239 | // 240 | this.button7.Location = new System.Drawing.Point(343, 108); 241 | this.button7.Name = "button7"; 242 | this.button7.Size = new System.Drawing.Size(75, 23); 243 | this.button7.TabIndex = 14; 244 | this.button7.Text = "取消关机"; 245 | this.button7.UseVisualStyleBackColor = true; 246 | this.button7.Click += new System.EventHandler(this.button7_Click); 247 | // 248 | // label6 249 | // 250 | this.label6.AutoSize = true; 251 | this.label6.Location = new System.Drawing.Point(143, 27); 252 | this.label6.Name = "label6"; 253 | this.label6.Size = new System.Drawing.Size(41, 12); 254 | this.label6.TabIndex = 5; 255 | this.label6.Text = "进程:"; 256 | // 257 | // textBox6 258 | // 259 | this.textBox6.Location = new System.Drawing.Point(183, 23); 260 | this.textBox6.Name = "textBox6"; 261 | this.textBox6.Size = new System.Drawing.Size(85, 21); 262 | this.textBox6.TabIndex = 6; 263 | this.textBox6.Text = "singleNet"; 264 | // 265 | // label7 266 | // 267 | this.label7.AutoSize = true; 268 | this.label7.FlatStyle = System.Windows.Forms.FlatStyle.System; 269 | this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(134))); 270 | this.label7.ForeColor = System.Drawing.SystemColors.MenuHighlight; 271 | this.label7.Location = new System.Drawing.Point(282, 255); 272 | this.label7.Name = "label7"; 273 | this.label7.Size = new System.Drawing.Size(167, 17); 274 | this.label7.TabIndex = 15; 275 | this.label7.Text = "Copyright © 2015, KC-Mei"; 276 | this.label7.Click += new System.EventHandler(this.label7_Click); 277 | // 278 | // MainFm 279 | // 280 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 281 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 282 | this.ClientSize = new System.Drawing.Size(454, 276); 283 | this.Controls.Add(this.label7); 284 | this.Controls.Add(this.groupBox2); 285 | this.Controls.Add(this.groupBox1); 286 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); 287 | this.Name = "MainFm"; 288 | this.Text = "Wifi共享"; 289 | this.groupBox1.ResumeLayout(false); 290 | this.groupBox1.PerformLayout(); 291 | this.groupBox2.ResumeLayout(false); 292 | this.groupBox2.PerformLayout(); 293 | this.ResumeLayout(false); 294 | this.PerformLayout(); 295 | 296 | } 297 | 298 | #endregion 299 | 300 | private System.Windows.Forms.Button button1; 301 | private System.Windows.Forms.GroupBox groupBox1; 302 | private System.Windows.Forms.TextBox textBox2; 303 | private System.Windows.Forms.Label label2; 304 | private System.Windows.Forms.TextBox textBox1; 305 | private System.Windows.Forms.Label label1; 306 | private System.Windows.Forms.Button button2; 307 | private System.Windows.Forms.Button button3; 308 | private System.Windows.Forms.Button button4; 309 | private System.Windows.Forms.TextBox textBox3; 310 | private System.Windows.Forms.Label label3; 311 | private System.Windows.Forms.TextBox textBox4; 312 | private System.Windows.Forms.Label label4; 313 | private System.Windows.Forms.Button button5; 314 | private System.Windows.Forms.Label label5; 315 | private System.Windows.Forms.TextBox textBox5; 316 | private System.Windows.Forms.Button button6; 317 | private System.Windows.Forms.GroupBox groupBox2; 318 | private System.Windows.Forms.Label label6; 319 | private System.Windows.Forms.TextBox textBox6; 320 | private System.Windows.Forms.Button button7; 321 | private System.Windows.Forms.Label label7; 322 | } 323 | } --------------------------------------------------------------------------------