TODO: Add any constructor code after the InitializeComponent call
//
}
<summary>
Clean up all resources that are in use.
</summary>
protected override void Dispose (bool disposing)
{
if (disposing)
{
if (Components!= null)
{
Components. Dispose ();
}
}
Base. Dispose (disposing);
}
#region Windows Form Designer generated code
<summary>
Designer supports required methods-do not use the Code editor to modify
The contents of this method.
</summary>
private void InitializeComponent ()
{
This.textbox1 = new System.Windows.Forms.TextBox ();
This.textbox2 = new System.Windows.Forms.TextBox ();
This. SetACL = new System.Windows.Forms.Button ();
This.label1 = new System.Windows.Forms.Label ();
This.label2 = new System.Windows.Forms.Label ();
This.button1 = new System.Windows.Forms.Button ();
This. SuspendLayout ();
//
TextBox1
//
This.textBox1.Location = new System.Drawing.Point (80, 32);
This.textBox1.Name = "TextBox1";
This.textBox1.Size = new System.Drawing.Size (152, 21);
This.textBox1.TabIndex = 0;
This.textBox1.Text = "C:\\test";
//
TextBox2
//
This.textBox2.Location = new System.Drawing.Point (80, 80);
This.textBox2.Name = "TextBox2";
This.textBox2.Size = new System.Drawing.Size (152, 21);
This.textBox2.TabIndex = 1;
This.textBox2.Text = "ASPNET";
//
SetACL
//
This. Setacl.location = new System.Drawing.Point (152, 136);
This. Setacl.name = "SetACL";
This. Setacl.tabindex = 2;
This. Setacl.text = "Set";
This. Setacl.click + = new System.EventHandler (this. Setacl_click);
//
Label1
//
This.label1.Location = new System.Drawing.Point (24, 80);
This.label1.Name = "Label1";
This.label1.Size = new System.Drawing.Size (48, 23);
This.label1.TabIndex = 5;
This.label1.Text = "User:";
//
Label2
//
This.label2.Location = new System.Drawing.Point (24, 32);
This.label2.Name = "Label2";
This.label2.Size = new System.Drawing.Size (48, 23);
This.label2.TabIndex = 6;
This.label2.Text = "directory:";
//
Button1
//
This.button1.Location = new System.Drawing.Point (8, 168);
This.button1.Name = "Button1";
This.button1.TabIndex = 7;
This.button1.Text = "Button1";
This.button1.Click + = new System.EventHandler (This.button1_click);
//
Form1
//
This. AutoScaleBaseSize = new System.Drawing.Size (6, 14);
This. ClientSize = new System.Drawing.Size (280, 197);
This. Controls.Add (This.button1);
This. Controls.Add (THIS.LABEL2);
This. Controls.Add (THIS.LABEL1);
This. Controls.Add (this. SETACL);
This. Controls.Add (THIS.TEXTBOX2);
This. Controls.Add (This.textbox1);
This. MaximizeBox = false;
This. MinimizeBox = false;
This. Name = "Form1";
This. Text = "Form1";
This. ResumeLayout (FALSE);
}
#endregion
<summary>
The main entry point for the application.
</summary>
[STAThread]
static void Main ()
{
Application.Run (New Form1 ());
}
[DllImport ("advapi32.dll")]
public static extern bool LookupAccountName (string lpsystemname, string lpaccountname,byte[] sid,ref int Cbsid, Stringbui Lder referenceddomainname, ref int cbreferenceddomainname,ref int peuse);
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.