Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

The Windows Access Control Model Part 3

, 1 Jul 2005
In the third part of this series, we will take a tour of the new access control classes coming in .NET v2.0.
namespace NetAccessControl
{
    partial class ReadToken
    {
        /// <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.getTokenButton = new System.Windows.Forms.Button();
			this.procLabel = new System.Windows.Forms.Label();
			this.procLists = new System.Windows.Forms.ListBox();
			this.ownerEdit = new System.Windows.Forms.TextBox();
			this.ownerLabel = new System.Windows.Forms.Label();
			this.groupLbl = new System.Windows.Forms.Label();
			this.refreshButton = new System.Windows.Forms.Button();
			this.privilegeLbl = new System.Windows.Forms.Label();
			this.groupListView = new System.Windows.Forms.ListView();
			this.groupNameLViewCol = new System.Windows.Forms.ColumnHeader();
			this.groupAttributeLViewCol = new System.Windows.Forms.ColumnHeader();
			this.privListView = new System.Windows.Forms.ListView();
			this.privNameLViewCol = new System.Windows.Forms.ColumnHeader();
			this.privFlagLViewCol = new System.Windows.Forms.ColumnHeader();
			this.PrivContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.enableToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.disableToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.rTokenDescriptionLbl = new System.Windows.Forms.Label();
			this.CloseButton = new System.Windows.Forms.Button();
			this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
			this.statusStrip1 = new System.Windows.Forms.StatusStrip();
			this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
			this.PrivContextMenu.SuspendLayout();
			this.tableLayoutPanel1.SuspendLayout();
			this.statusStrip1.SuspendLayout();
			this.SuspendLayout();
			// 
			// getTokenButton
			// 
			this.getTokenButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.getTokenButton.Location = new System.Drawing.Point(524, 12);
			this.getTokenButton.Name = "getTokenButton";
			this.getTokenButton.Size = new System.Drawing.Size(75, 23);
			this.getTokenButton.TabIndex = 8;
			this.getTokenButton.Text = "Get &Token";
			this.getTokenButton.Click += new System.EventHandler(this.getTokenButton_Click);
			// 
			// procLabel
			// 
			this.procLabel.AutoSize = true;
			this.procLabel.Location = new System.Drawing.Point(13, 39);
			this.procLabel.Name = "procLabel";
			this.procLabel.Size = new System.Drawing.Size(41, 13);
			this.procLabel.TabIndex = 0;
			this.procLabel.Text = "Process";
			// 
			// procLists
			// 
			this.procLists.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)));
			this.procLists.FormattingEnabled = true;
			this.procLists.HorizontalScrollbar = true;
			this.procLists.Location = new System.Drawing.Point(14, 55);
			this.procLists.Name = "procLists";
			this.procLists.Size = new System.Drawing.Size(212, 316);
			this.procLists.TabIndex = 1;
			this.procLists.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.procLists_MouseDoubleClick);
			// 
			// ownerEdit
			// 
			this.ownerEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.ownerEdit.Location = new System.Drawing.Point(273, 72);
			this.ownerEdit.Name = "ownerEdit";
			this.ownerEdit.ReadOnly = true;
			this.ownerEdit.Size = new System.Drawing.Size(245, 20);
			this.ownerEdit.TabIndex = 3;
			// 
			// ownerLabel
			// 
			this.ownerLabel.AutoSize = true;
			this.ownerLabel.Location = new System.Drawing.Point(232, 75);
			this.ownerLabel.Name = "ownerLabel";
			this.ownerLabel.Size = new System.Drawing.Size(34, 13);
			this.ownerLabel.TabIndex = 2;
			this.ownerLabel.Text = "Owner";
			// 
			// groupLbl
			// 
			this.groupLbl.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.groupLbl.AutoSize = true;
			this.groupLbl.Location = new System.Drawing.Point(24, 0);
			this.groupLbl.Name = "groupLbl";
			this.groupLbl.Size = new System.Drawing.Size(32, 13);
			this.groupLbl.TabIndex = 4;
			this.groupLbl.Text = "Group";
			this.groupLbl.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// refreshButton
			// 
			this.refreshButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.refreshButton.Location = new System.Drawing.Point(524, 41);
			this.refreshButton.Name = "refreshButton";
			this.refreshButton.Size = new System.Drawing.Size(75, 23);
			this.refreshButton.TabIndex = 9;
			this.refreshButton.Text = "&Refresh";
			this.refreshButton.Click += new System.EventHandler(this.refreshButton_Click);
			// 
			// privilegeLbl
			// 
			this.privilegeLbl.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.privilegeLbl.AutoSize = true;
			this.privilegeLbl.Location = new System.Drawing.Point(16, 111);
			this.privilegeLbl.Name = "privilegeLbl";
			this.privilegeLbl.Size = new System.Drawing.Size(48, 13);
			this.privilegeLbl.TabIndex = 6;
			this.privilegeLbl.Text = "Privileges";
			this.privilegeLbl.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// groupListView
			// 
			this.groupListView.AllowColumnReorder = true;
			this.groupListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.groupListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.groupNameLViewCol,
            this.groupAttributeLViewCol});
			this.tableLayoutPanel1.SetColumnSpan(this.groupListView, 2);
			this.groupListView.FullRowSelect = true;
			this.groupListView.Location = new System.Drawing.Point(3, 16);
			this.groupListView.Name = "groupListView";
			this.groupListView.ShowItemToolTips = true;
			this.groupListView.Size = new System.Drawing.Size(360, 92);
			this.groupListView.TabIndex = 5;
			this.groupListView.View = System.Windows.Forms.View.Details;
			// 
			// groupNameLViewCol
			// 
			this.groupNameLViewCol.Text = "Group Name";
			this.groupNameLViewCol.Width = 131;
			// 
			// groupAttributeLViewCol
			// 
			this.groupAttributeLViewCol.Text = "Group SID";
			this.groupAttributeLViewCol.Width = 221;
			// 
			// privListView
			// 
			this.privListView.AllowColumnReorder = true;
			this.privListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.privListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.privNameLViewCol,
            this.privFlagLViewCol});
			this.tableLayoutPanel1.SetColumnSpan(this.privListView, 2);
			this.privListView.FullRowSelect = true;
			this.privListView.Location = new System.Drawing.Point(3, 127);
			this.privListView.MultiSelect = false;
			this.privListView.Name = "privListView";
			this.privListView.ShowItemToolTips = true;
			this.privListView.Size = new System.Drawing.Size(360, 142);
			this.privListView.TabIndex = 7;
			this.privListView.View = System.Windows.Forms.View.Details;
			this.privListView.SelectedIndexChanged += new System.EventHandler(this.privListView_SelectedIndexChanged);
			// 
			// privNameLViewCol
			// 
			this.privNameLViewCol.Text = "Privilege";
			this.privNameLViewCol.Width = 221;
			// 
			// privFlagLViewCol
			// 
			this.privFlagLViewCol.Text = "Flags";
			this.privFlagLViewCol.Width = 111;
			// 
			// PrivContextMenu
			// 
			this.PrivContextMenu.Enabled = true;
			this.PrivContextMenu.GripMargin = new System.Windows.Forms.Padding(2);
			this.PrivContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.enableToolStripMenuItem,
            this.disableToolStripMenuItem});
			this.PrivContextMenu.Location = new System.Drawing.Point(25, 59);
			this.PrivContextMenu.Name = "PrivContextMenu";
			this.PrivContextMenu.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.PrivContextMenu.ShowImageMargin = false;
			this.PrivContextMenu.Size = new System.Drawing.Size(80, 48);
			// 
			// enableToolStripMenuItem
			// 
			this.enableToolStripMenuItem.Enabled = false;
			this.enableToolStripMenuItem.Name = "enableToolStripMenuItem";
			this.enableToolStripMenuItem.Text = "&Enable";
			this.enableToolStripMenuItem.Click += new System.EventHandler(this.enableToolStripMenuItem_Click);
			// 
			// disableToolStripMenuItem
			// 
			this.disableToolStripMenuItem.Enabled = false;
			this.disableToolStripMenuItem.Name = "disableToolStripMenuItem";
			this.disableToolStripMenuItem.Text = "&Disable";
			this.disableToolStripMenuItem.Click += new System.EventHandler(this.disableToolStripMenuItem_Click);
			// 
			// rTokenDescriptionLbl
			// 
			this.rTokenDescriptionLbl.AutoSize = true;
			this.rTokenDescriptionLbl.Location = new System.Drawing.Point(14, 13);
			this.rTokenDescriptionLbl.Name = "rTokenDescriptionLbl";
			this.rTokenDescriptionLbl.Size = new System.Drawing.Size(283, 13);
			this.rTokenDescriptionLbl.TabIndex = 10;
			this.rTokenDescriptionLbl.Text = "Select a process to view information about its access token";
			// 
			// CloseButton
			// 
			this.CloseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.CloseButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.CloseButton.Location = new System.Drawing.Point(524, 70);
			this.CloseButton.Name = "CloseButton";
			this.CloseButton.Size = new System.Drawing.Size(75, 23);
			this.CloseButton.TabIndex = 11;
			this.CloseButton.Text = "&Close";
			this.CloseButton.Click += new System.EventHandler(this.CloseButton_Click);
			// 
			// tableLayoutPanel1
			// 
			this.tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
						| System.Windows.Forms.AnchorStyles.Left)
						| System.Windows.Forms.AnchorStyles.Right)));
			this.tableLayoutPanel1.ColumnCount = 2;
			this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 80F));
			this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 286F));
			this.tableLayoutPanel1.Controls.Add(this.groupListView, 0, 1);
			this.tableLayoutPanel1.Controls.Add(this.privListView, 0, 3);
			this.tableLayoutPanel1.Controls.Add(this.privilegeLbl, 0, 2);
			this.tableLayoutPanel1.Controls.Add(this.groupLbl, 0, 0);
			this.tableLayoutPanel1.Location = new System.Drawing.Point(233, 99);
			this.tableLayoutPanel1.Name = "tableLayoutPanel1";
			this.tableLayoutPanel1.RowCount = 4;
			this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F));
			this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 60F));
			this.tableLayoutPanel1.Size = new System.Drawing.Size(366, 272);
			this.tableLayoutPanel1.TabIndex = 12;
			// 
			// statusStrip1
			// 
			this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripStatusLabel});
			this.statusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table;
			this.statusStrip1.Location = new System.Drawing.Point(0, 374);
			this.statusStrip1.Name = "statusStrip1";
			this.statusStrip1.Size = new System.Drawing.Size(611, 23);
			this.statusStrip1.TabIndex = 13;
			this.statusStrip1.Text = "statusStrip1";
			// 
			// toolStripStatusLabel
			// 
			this.toolStripStatusLabel.Name = "toolStripStatusLabel";
			this.toolStripStatusLabel.Text = "Ready";
			// 
			// ReadToken
			// 
			this.AcceptButton = this.getTokenButton;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.CancelButton = this.CloseButton;
			this.ClientSize = new System.Drawing.Size(611, 397);
			this.Controls.Add(this.CloseButton);
			this.Controls.Add(this.rTokenDescriptionLbl);
			this.Controls.Add(this.refreshButton);
			this.Controls.Add(this.ownerLabel);
			this.Controls.Add(this.ownerEdit);
			this.Controls.Add(this.procLists);
			this.Controls.Add(this.procLabel);
			this.Controls.Add(this.getTokenButton);
			this.Controls.Add(this.tableLayoutPanel1);
			this.Controls.Add(this.statusStrip1);
			this.DoubleBuffered = true;
			this.MinimumSize = new System.Drawing.Size(540, 400);
			this.Name = "ReadToken";
			this.Text = "ReadToken";
			this.Load += new System.EventHandler(this.ReadToken_Load);
			this.PrivContextMenu.ResumeLayout(false);
			this.tableLayoutPanel1.ResumeLayout(false);
			this.tableLayoutPanel1.PerformLayout();
			this.statusStrip1.ResumeLayout(false);
			this.ResumeLayout(false);
			this.PerformLayout();

        }

        #endregion

		private System.Windows.Forms.Button getTokenButton;
        private System.Windows.Forms.Label procLabel;
		private System.Windows.Forms.ListBox procLists;
		private System.Windows.Forms.TextBox ownerEdit;
		private System.Windows.Forms.Label ownerLabel;
		private System.Windows.Forms.Label groupLbl;
		private System.Windows.Forms.Button refreshButton;
		private System.Windows.Forms.Label privilegeLbl;
		private System.Windows.Forms.ListView groupListView;
		private System.Windows.Forms.ColumnHeader groupNameLViewCol;
		private System.Windows.Forms.ColumnHeader groupAttributeLViewCol;
		private System.Windows.Forms.ListView privListView;
		private System.Windows.Forms.ColumnHeader privNameLViewCol;
		private System.Windows.Forms.ColumnHeader privFlagLViewCol;
		private System.Windows.Forms.Label rTokenDescriptionLbl;
		private System.Windows.Forms.Button CloseButton;
		private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
		private System.Windows.Forms.ContextMenuStrip PrivContextMenu;
		private System.Windows.Forms.ToolStripMenuItem enableToolStripMenuItem;
		private System.Windows.Forms.ToolStripMenuItem disableToolStripMenuItem;
		private System.Windows.Forms.StatusStrip statusStrip1;
		private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

oshah
Web Developer
United States United States
Mr. Shah is a reclusive C++/C# developer lurking somewhere in the depths of the city of London. He learnt physics at Kings' College London and obtained a Master in Science there. Having earned an MCAD, he teeters on the brink of transitioning from C++ to C#, unsure of which language to jump to. Fortunately, he also knows how to use .NET interop to merge code between the two languages (which means he won't have to make the choice anytime soon).
 
His interests (apart from programming) are walking, football (the real one!), philosophy, history, retro-gaming, strategy gaming, and any good game in general.
 
He maintains a website / blog / FAQ / junk at shexec32.serveftp.net, where he places the best answers he's written to the questions you've asked. If you can find him, maybe you can hire Mr. Shah to help you with anything C++[/CLI]/C#/.NET related Smile | :) .

| Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 1 Jul 2005
Article Copyright 2005 by oshah
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid