# HG changeset patch # User sl # Date 1421580922 -3600 # Node ID 787dee27fc0a9c18a47b52df6d4eb5ad722b7161 # Parent 61e2e2d41c0a69934956a23a86a2a03109369349 Auto Start should work. diff -r 61e2e2d41c0a -r 787dee27fc0a Server/MainForm.Designer.cs --- a/Server/MainForm.Designer.cs Sat Jan 17 18:26:41 2015 +0100 +++ b/Server/MainForm.Designer.cs Sun Jan 18 12:35:22 2015 +0100 @@ -28,671 +28,686 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); - this.panelDisplay = new System.Windows.Forms.Panel(); - this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); - this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel(); - this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel(); - this.fontDialog = new System.Windows.Forms.FontDialog(); - this.timer = new System.Windows.Forms.Timer(this.components); - this.statusStrip = new System.Windows.Forms.StatusStrip(); - this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel(); - this.tabPageClients = new System.Windows.Forms.TabPage(); - this.buttonCloseClients = new System.Windows.Forms.Button(); - this.buttonStartClient = new System.Windows.Forms.Button(); - this.treeViewClients = new System.Windows.Forms.TreeView(); - this.tabPageDisplay = new System.Windows.Forms.TabPage(); - this.buttonShowClock = new System.Windows.Forms.Button(); - this.buttonHideClock = new System.Windows.Forms.Button(); - this.buttonPowerOff = new System.Windows.Forms.Button(); - this.buttonPowerOn = new System.Windows.Forms.Button(); - this.labelTimerInterval = new System.Windows.Forms.Label(); - this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox(); - this.comboBoxDisplayType = new System.Windows.Forms.ComboBox(); - this.buttonSuspend = new System.Windows.Forms.Button(); - this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox(); - this.trackBarBrightness = new System.Windows.Forms.TrackBar(); - this.buttonFill = new System.Windows.Forms.Button(); - this.buttonClear = new System.Windows.Forms.Button(); - this.buttonClose = new System.Windows.Forms.Button(); - this.buttonOpen = new System.Windows.Forms.Button(); - this.buttonCapture = new System.Windows.Forms.Button(); - this.labelWarning = new System.Windows.Forms.Label(); - this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox(); - this.checkBoxShowBorders = new System.Windows.Forms.CheckBox(); - this.buttonFont = new System.Windows.Forms.Button(); - this.tabControl = new System.Windows.Forms.TabControl(); - this.tabPageDesign = new System.Windows.Forms.TabPage(); - this.checkBoxInverseColors = new System.Windows.Forms.CheckBox(); - this.buttonAlignRight = new System.Windows.Forms.Button(); - this.buttonAlignCenter = new System.Windows.Forms.Button(); - this.buttonAlignLeft = new System.Windows.Forms.Button(); - this.buttonRemoveColumn = new System.Windows.Forms.Button(); - this.buttonAddColumn = new System.Windows.Forms.Button(); - this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox(); - this.buttonRemoveRow = new System.Windows.Forms.Button(); - this.buttonAddRow = new System.Windows.Forms.Button(); - this.labelFontWidth = new System.Windows.Forms.Label(); - this.labelFontHeight = new System.Windows.Forms.Label(); - this.pictureBoxDemo = new System.Windows.Forms.PictureBox(); - this.tabPageApp = new System.Windows.Forms.TabPage(); - this.buttonUpdate = new System.Windows.Forms.Button(); - this.panelDisplay.SuspendLayout(); - this.tableLayoutPanel.SuspendLayout(); - this.statusStrip.SuspendLayout(); - this.tabPageClients.SuspendLayout(); - this.tabPageDisplay.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit(); - this.tabControl.SuspendLayout(); - this.tabPageDesign.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).BeginInit(); - this.tabPageApp.SuspendLayout(); - this.SuspendLayout(); - // - // panelDisplay - // - this.panelDisplay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panelDisplay.Controls.Add(this.tableLayoutPanel); - this.panelDisplay.Location = new System.Drawing.Point(173, 40); - this.panelDisplay.Margin = new System.Windows.Forms.Padding(0); - this.panelDisplay.Name = "panelDisplay"; - this.panelDisplay.Size = new System.Drawing.Size(258, 66); - this.panelDisplay.TabIndex = 12; - // - // tableLayoutPanel - // - this.tableLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.panelDisplay = new System.Windows.Forms.Panel(); + this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); + this.marqueeLabelTop = new SharpDisplayManager.MarqueeLabel(); + this.marqueeLabelBottom = new SharpDisplayManager.MarqueeLabel(); + this.fontDialog = new System.Windows.Forms.FontDialog(); + this.timer = new System.Windows.Forms.Timer(this.components); + this.statusStrip = new System.Windows.Forms.StatusStrip(); + this.toolStripStatusLabelConnect = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripStatusLabelSpring = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripStatusLabelPower = new System.Windows.Forms.ToolStripStatusLabel(); + this.toolStripStatusLabelFps = new System.Windows.Forms.ToolStripStatusLabel(); + this.tabPageClients = new System.Windows.Forms.TabPage(); + this.buttonCloseClients = new System.Windows.Forms.Button(); + this.buttonStartClient = new System.Windows.Forms.Button(); + this.treeViewClients = new System.Windows.Forms.TreeView(); + this.tabPageDisplay = new System.Windows.Forms.TabPage(); + this.buttonShowClock = new System.Windows.Forms.Button(); + this.buttonHideClock = new System.Windows.Forms.Button(); + this.buttonPowerOff = new System.Windows.Forms.Button(); + this.buttonPowerOn = new System.Windows.Forms.Button(); + this.labelTimerInterval = new System.Windows.Forms.Label(); + this.maskedTextBoxTimerInterval = new System.Windows.Forms.MaskedTextBox(); + this.comboBoxDisplayType = new System.Windows.Forms.ComboBox(); + this.buttonSuspend = new System.Windows.Forms.Button(); + this.checkBoxConnectOnStartup = new System.Windows.Forms.CheckBox(); + this.trackBarBrightness = new System.Windows.Forms.TrackBar(); + this.buttonFill = new System.Windows.Forms.Button(); + this.buttonClear = new System.Windows.Forms.Button(); + this.buttonClose = new System.Windows.Forms.Button(); + this.buttonOpen = new System.Windows.Forms.Button(); + this.buttonCapture = new System.Windows.Forms.Button(); + this.labelWarning = new System.Windows.Forms.Label(); + this.checkBoxFixedPitchFontOnly = new System.Windows.Forms.CheckBox(); + this.checkBoxShowBorders = new System.Windows.Forms.CheckBox(); + this.buttonFont = new System.Windows.Forms.Button(); + this.tabControl = new System.Windows.Forms.TabControl(); + this.tabPageDesign = new System.Windows.Forms.TabPage(); + this.checkBoxInverseColors = new System.Windows.Forms.CheckBox(); + this.buttonAlignRight = new System.Windows.Forms.Button(); + this.buttonAlignCenter = new System.Windows.Forms.Button(); + this.buttonAlignLeft = new System.Windows.Forms.Button(); + this.buttonRemoveColumn = new System.Windows.Forms.Button(); + this.buttonAddColumn = new System.Windows.Forms.Button(); + this.checkBoxReverseScreen = new System.Windows.Forms.CheckBox(); + this.buttonRemoveRow = new System.Windows.Forms.Button(); + this.buttonAddRow = new System.Windows.Forms.Button(); + this.tabPageApp = new System.Windows.Forms.TabPage(); + this.checkBoxAutoStart = new System.Windows.Forms.CheckBox(); + this.buttonUpdate = new System.Windows.Forms.Button(); + this.labelFontWidth = new System.Windows.Forms.Label(); + this.labelFontHeight = new System.Windows.Forms.Label(); + this.pictureBoxDemo = new System.Windows.Forms.PictureBox(); + this.panelDisplay.SuspendLayout(); + this.tableLayoutPanel.SuspendLayout(); + this.statusStrip.SuspendLayout(); + this.tabPageClients.SuspendLayout(); + this.tabPageDisplay.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).BeginInit(); + this.tabControl.SuspendLayout(); + this.tabPageDesign.SuspendLayout(); + this.tabPageApp.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).BeginInit(); + this.SuspendLayout(); + // + // panelDisplay + // + this.panelDisplay.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panelDisplay.Controls.Add(this.tableLayoutPanel); + this.panelDisplay.Location = new System.Drawing.Point(173, 40); + this.panelDisplay.Margin = new System.Windows.Forms.Padding(0); + this.panelDisplay.Name = "panelDisplay"; + this.panelDisplay.Size = new System.Drawing.Size(258, 66); + this.panelDisplay.TabIndex = 12; + // + // tableLayoutPanel + // + this.tableLayoutPanel.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.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; - this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; - this.tableLayoutPanel.ColumnCount = 1; - this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0); - this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1); - this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize; - this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0); - this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); - this.tableLayoutPanel.Name = "tableLayoutPanel"; - this.tableLayoutPanel.RowCount = 2; - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64); - this.tableLayoutPanel.TabIndex = 5; - // - // marqueeLabelTop - // - this.marqueeLabelTop.AutoEllipsis = true; - this.marqueeLabelTop.AutoSize = true; - this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent; - this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill; - this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1); - this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0); - this.marqueeLabelTop.Name = "marqueeLabelTop"; - this.marqueeLabelTop.OwnTimer = false; - this.marqueeLabelTop.PixelsPerSecond = 64; - this.marqueeLabelTop.Separator = "|"; - this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30); - this.marqueeLabelTop.TabIndex = 2; - this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789"; - this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.marqueeLabelTop.UseCompatibleTextRendering = true; - // - // marqueeLabelBottom - // - this.marqueeLabelBottom.AutoEllipsis = true; - this.marqueeLabelBottom.AutoSize = true; - this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill; - this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32); - this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0); - this.marqueeLabelBottom.Name = "marqueeLabelBottom"; - this.marqueeLabelBottom.OwnTimer = false; - this.marqueeLabelBottom.PixelsPerSecond = 64; - this.marqueeLabelBottom.Separator = "|"; - this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31); - this.marqueeLabelBottom.TabIndex = 3; - this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789"; - this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.marqueeLabelBottom.UseCompatibleTextRendering = true; - // - // timer - // - this.timer.Enabled = true; - this.timer.Interval = 50; - this.timer.Tick += new System.EventHandler(this.timer_Tick); - // - // statusStrip - // - this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.tableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.tableLayoutPanel.BackColor = System.Drawing.SystemColors.ControlLightLight; + this.tableLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single; + this.tableLayoutPanel.ColumnCount = 1; + this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel.Controls.Add(this.marqueeLabelTop, 0, 0); + this.tableLayoutPanel.Controls.Add(this.marqueeLabelBottom, 0, 1); + this.tableLayoutPanel.GrowStyle = System.Windows.Forms.TableLayoutPanelGrowStyle.FixedSize; + this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); + this.tableLayoutPanel.Name = "tableLayoutPanel"; + this.tableLayoutPanel.RowCount = 2; + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel.Size = new System.Drawing.Size(256, 64); + this.tableLayoutPanel.TabIndex = 5; + // + // marqueeLabelTop + // + this.marqueeLabelTop.AutoEllipsis = true; + this.marqueeLabelTop.AutoSize = true; + this.marqueeLabelTop.BackColor = System.Drawing.Color.Transparent; + this.marqueeLabelTop.Dock = System.Windows.Forms.DockStyle.Fill; + this.marqueeLabelTop.Location = new System.Drawing.Point(1, 1); + this.marqueeLabelTop.Margin = new System.Windows.Forms.Padding(0); + this.marqueeLabelTop.Name = "marqueeLabelTop"; + this.marqueeLabelTop.OwnTimer = false; + this.marqueeLabelTop.PixelsPerSecond = 64; + this.marqueeLabelTop.Separator = "|"; + this.marqueeLabelTop.Size = new System.Drawing.Size(254, 30); + this.marqueeLabelTop.TabIndex = 2; + this.marqueeLabelTop.Text = "ABCDEFGHIJKLMNOPQRST-0123456789"; + this.marqueeLabelTop.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.marqueeLabelTop.UseCompatibleTextRendering = true; + // + // marqueeLabelBottom + // + this.marqueeLabelBottom.AutoEllipsis = true; + this.marqueeLabelBottom.AutoSize = true; + this.marqueeLabelBottom.Dock = System.Windows.Forms.DockStyle.Fill; + this.marqueeLabelBottom.Location = new System.Drawing.Point(1, 32); + this.marqueeLabelBottom.Margin = new System.Windows.Forms.Padding(0); + this.marqueeLabelBottom.Name = "marqueeLabelBottom"; + this.marqueeLabelBottom.OwnTimer = false; + this.marqueeLabelBottom.PixelsPerSecond = 64; + this.marqueeLabelBottom.Separator = "|"; + this.marqueeLabelBottom.Size = new System.Drawing.Size(254, 31); + this.marqueeLabelBottom.TabIndex = 3; + this.marqueeLabelBottom.Text = "abcdefghijklmnopqrst-0123456789"; + this.marqueeLabelBottom.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.marqueeLabelBottom.UseCompatibleTextRendering = true; + // + // timer + // + this.timer.Enabled = true; + this.timer.Interval = 50; + this.timer.Tick += new System.EventHandler(this.timer_Tick); + // + // statusStrip + // + this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabelConnect, this.toolStripStatusLabelSpring, this.toolStripStatusLabelPower, this.toolStripStatusLabelFps}); - this.statusStrip.Location = new System.Drawing.Point(0, 420); - this.statusStrip.Name = "statusStrip"; - this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; - this.statusStrip.Size = new System.Drawing.Size(624, 22); - this.statusStrip.TabIndex = 1; - this.statusStrip.Text = "statusStrip"; - // - // toolStripStatusLabelConnect - // - this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect"; - this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17); - this.toolStripStatusLabelConnect.Text = "Not connected"; - // - // toolStripStatusLabelSpring - // - this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring"; - this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(473, 17); - this.toolStripStatusLabelSpring.Spring = true; - // - // toolStripStatusLabelPower - // - this.toolStripStatusLabelPower.Name = "toolStripStatusLabelPower"; - this.toolStripStatusLabelPower.Size = new System.Drawing.Size(24, 17); - this.toolStripStatusLabelPower.Text = "NA"; - // - // toolStripStatusLabelFps - // - this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps"; - this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17); - this.toolStripStatusLabelFps.Text = "FPS"; - // - // tabPageClients - // - this.tabPageClients.Controls.Add(this.buttonCloseClients); - this.tabPageClients.Controls.Add(this.buttonStartClient); - this.tabPageClients.Controls.Add(this.treeViewClients); - this.tabPageClients.Location = new System.Drawing.Point(4, 22); - this.tabPageClients.Name = "tabPageClients"; - this.tabPageClients.Padding = new System.Windows.Forms.Padding(3); - this.tabPageClients.Size = new System.Drawing.Size(592, 242); - this.tabPageClients.TabIndex = 2; - this.tabPageClients.Text = "Clients"; - this.tabPageClients.UseVisualStyleBackColor = true; - // - // buttonCloseClients - // - this.buttonCloseClients.Location = new System.Drawing.Point(6, 35); - this.buttonCloseClients.Name = "buttonCloseClients"; - this.buttonCloseClients.Size = new System.Drawing.Size(75, 23); - this.buttonCloseClients.TabIndex = 20; - this.buttonCloseClients.Text = "Close Clients"; - this.buttonCloseClients.UseVisualStyleBackColor = true; - this.buttonCloseClients.Click += new System.EventHandler(this.buttonCloseClients_Click); - // - // buttonStartClient - // - this.buttonStartClient.Location = new System.Drawing.Point(6, 6); - this.buttonStartClient.Name = "buttonStartClient"; - this.buttonStartClient.Size = new System.Drawing.Size(75, 23); - this.buttonStartClient.TabIndex = 19; - this.buttonStartClient.Text = "Start Client"; - this.buttonStartClient.UseVisualStyleBackColor = true; - this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click); - // - // treeViewClients - // - this.treeViewClients.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.statusStrip.Location = new System.Drawing.Point(0, 420); + this.statusStrip.Name = "statusStrip"; + this.statusStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; + this.statusStrip.Size = new System.Drawing.Size(624, 22); + this.statusStrip.TabIndex = 1; + this.statusStrip.Text = "statusStrip"; + // + // toolStripStatusLabelConnect + // + this.toolStripStatusLabelConnect.Name = "toolStripStatusLabelConnect"; + this.toolStripStatusLabelConnect.Size = new System.Drawing.Size(86, 17); + this.toolStripStatusLabelConnect.Text = "Not connected"; + // + // toolStripStatusLabelSpring + // + this.toolStripStatusLabelSpring.Name = "toolStripStatusLabelSpring"; + this.toolStripStatusLabelSpring.Size = new System.Drawing.Size(473, 17); + this.toolStripStatusLabelSpring.Spring = true; + // + // toolStripStatusLabelPower + // + this.toolStripStatusLabelPower.Name = "toolStripStatusLabelPower"; + this.toolStripStatusLabelPower.Size = new System.Drawing.Size(24, 17); + this.toolStripStatusLabelPower.Text = "NA"; + // + // toolStripStatusLabelFps + // + this.toolStripStatusLabelFps.Name = "toolStripStatusLabelFps"; + this.toolStripStatusLabelFps.Size = new System.Drawing.Size(26, 17); + this.toolStripStatusLabelFps.Text = "FPS"; + // + // tabPageClients + // + this.tabPageClients.Controls.Add(this.buttonCloseClients); + this.tabPageClients.Controls.Add(this.buttonStartClient); + this.tabPageClients.Controls.Add(this.treeViewClients); + this.tabPageClients.Location = new System.Drawing.Point(4, 22); + this.tabPageClients.Name = "tabPageClients"; + this.tabPageClients.Padding = new System.Windows.Forms.Padding(3); + this.tabPageClients.Size = new System.Drawing.Size(592, 242); + this.tabPageClients.TabIndex = 2; + this.tabPageClients.Text = "Clients"; + this.tabPageClients.UseVisualStyleBackColor = true; + // + // buttonCloseClients + // + this.buttonCloseClients.Location = new System.Drawing.Point(6, 35); + this.buttonCloseClients.Name = "buttonCloseClients"; + this.buttonCloseClients.Size = new System.Drawing.Size(75, 23); + this.buttonCloseClients.TabIndex = 20; + this.buttonCloseClients.Text = "Close Clients"; + this.buttonCloseClients.UseVisualStyleBackColor = true; + this.buttonCloseClients.Click += new System.EventHandler(this.buttonCloseClients_Click); + // + // buttonStartClient + // + this.buttonStartClient.Location = new System.Drawing.Point(6, 6); + this.buttonStartClient.Name = "buttonStartClient"; + this.buttonStartClient.Size = new System.Drawing.Size(75, 23); + this.buttonStartClient.TabIndex = 19; + this.buttonStartClient.Text = "Start Client"; + this.buttonStartClient.UseVisualStyleBackColor = true; + this.buttonStartClient.Click += new System.EventHandler(this.buttonStartClient_Click); + // + // treeViewClients + // + this.treeViewClients.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.treeViewClients.Location = new System.Drawing.Point(87, 6); - this.treeViewClients.Name = "treeViewClients"; - this.treeViewClients.Size = new System.Drawing.Size(499, 233); - this.treeViewClients.TabIndex = 0; - this.treeViewClients.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewClients_AfterSelect); - // - // tabPageDisplay - // - this.tabPageDisplay.Controls.Add(this.buttonShowClock); - this.tabPageDisplay.Controls.Add(this.buttonHideClock); - this.tabPageDisplay.Controls.Add(this.buttonPowerOff); - this.tabPageDisplay.Controls.Add(this.buttonPowerOn); - this.tabPageDisplay.Controls.Add(this.labelTimerInterval); - this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval); - this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType); - this.tabPageDisplay.Controls.Add(this.buttonSuspend); - this.tabPageDisplay.Controls.Add(this.checkBoxConnectOnStartup); - this.tabPageDisplay.Controls.Add(this.trackBarBrightness); - this.tabPageDisplay.Controls.Add(this.buttonFill); - this.tabPageDisplay.Controls.Add(this.buttonClear); - this.tabPageDisplay.Controls.Add(this.buttonClose); - this.tabPageDisplay.Controls.Add(this.buttonOpen); - this.tabPageDisplay.Controls.Add(this.buttonCapture); - this.tabPageDisplay.Location = new System.Drawing.Point(4, 22); - this.tabPageDisplay.Name = "tabPageDisplay"; - this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3); - this.tabPageDisplay.Size = new System.Drawing.Size(592, 242); - this.tabPageDisplay.TabIndex = 0; - this.tabPageDisplay.Text = "Display"; - this.tabPageDisplay.UseVisualStyleBackColor = true; - // - // buttonShowClock - // - this.buttonShowClock.Location = new System.Drawing.Point(293, 124); - this.buttonShowClock.Name = "buttonShowClock"; - this.buttonShowClock.Size = new System.Drawing.Size(75, 23); - this.buttonShowClock.TabIndex = 23; - this.buttonShowClock.Text = "Show Clock"; - this.buttonShowClock.UseVisualStyleBackColor = true; - this.buttonShowClock.Click += new System.EventHandler(this.buttonShowClock_Click); - // - // buttonHideClock - // - this.buttonHideClock.Location = new System.Drawing.Point(293, 153); - this.buttonHideClock.Name = "buttonHideClock"; - this.buttonHideClock.Size = new System.Drawing.Size(75, 23); - this.buttonHideClock.TabIndex = 22; - this.buttonHideClock.Text = "Hide Clock"; - this.buttonHideClock.UseVisualStyleBackColor = true; - this.buttonHideClock.Click += new System.EventHandler(this.buttonHideClock_Click); - // - // buttonPowerOff - // - this.buttonPowerOff.Location = new System.Drawing.Point(293, 211); - this.buttonPowerOff.Name = "buttonPowerOff"; - this.buttonPowerOff.Size = new System.Drawing.Size(75, 23); - this.buttonPowerOff.TabIndex = 21; - this.buttonPowerOff.Text = "OFF"; - this.buttonPowerOff.UseVisualStyleBackColor = true; - this.buttonPowerOff.Click += new System.EventHandler(this.buttonPowerOff_Click); - // - // buttonPowerOn - // - this.buttonPowerOn.Location = new System.Drawing.Point(293, 182); - this.buttonPowerOn.Name = "buttonPowerOn"; - this.buttonPowerOn.Size = new System.Drawing.Size(75, 23); - this.buttonPowerOn.TabIndex = 20; - this.buttonPowerOn.Text = "ON"; - this.buttonPowerOn.UseVisualStyleBackColor = true; - this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click); - // - // labelTimerInterval - // - this.labelTimerInterval.AutoSize = true; - this.labelTimerInterval.Location = new System.Drawing.Point(184, 45); - this.labelTimerInterval.Name = "labelTimerInterval"; - this.labelTimerInterval.Size = new System.Drawing.Size(98, 13); - this.labelTimerInterval.TabIndex = 19; - this.labelTimerInterval.Text = "Timer interval (ms) :"; - // - // maskedTextBoxTimerInterval - // - this.maskedTextBoxTimerInterval.Location = new System.Drawing.Point(288, 42); - this.maskedTextBoxTimerInterval.Mask = "000"; - this.maskedTextBoxTimerInterval.Name = "maskedTextBoxTimerInterval"; - this.maskedTextBoxTimerInterval.PromptChar = ' '; - this.maskedTextBoxTimerInterval.Size = new System.Drawing.Size(24, 20); - this.maskedTextBoxTimerInterval.TabIndex = 18; - this.maskedTextBoxTimerInterval.TextChanged += new System.EventHandler(this.maskedTextBoxTimerInterval_TextChanged); - // - // comboBoxDisplayType - // - this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.comboBoxDisplayType.FormattingEnabled = true; - this.comboBoxDisplayType.Items.AddRange(new object[] { + this.treeViewClients.Location = new System.Drawing.Point(87, 6); + this.treeViewClients.Name = "treeViewClients"; + this.treeViewClients.Size = new System.Drawing.Size(499, 233); + this.treeViewClients.TabIndex = 0; + this.treeViewClients.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeViewClients_AfterSelect); + // + // tabPageDisplay + // + this.tabPageDisplay.Controls.Add(this.buttonShowClock); + this.tabPageDisplay.Controls.Add(this.buttonHideClock); + this.tabPageDisplay.Controls.Add(this.buttonPowerOff); + this.tabPageDisplay.Controls.Add(this.buttonPowerOn); + this.tabPageDisplay.Controls.Add(this.labelTimerInterval); + this.tabPageDisplay.Controls.Add(this.maskedTextBoxTimerInterval); + this.tabPageDisplay.Controls.Add(this.comboBoxDisplayType); + this.tabPageDisplay.Controls.Add(this.buttonSuspend); + this.tabPageDisplay.Controls.Add(this.checkBoxConnectOnStartup); + this.tabPageDisplay.Controls.Add(this.trackBarBrightness); + this.tabPageDisplay.Controls.Add(this.buttonFill); + this.tabPageDisplay.Controls.Add(this.buttonClear); + this.tabPageDisplay.Controls.Add(this.buttonClose); + this.tabPageDisplay.Controls.Add(this.buttonOpen); + this.tabPageDisplay.Controls.Add(this.buttonCapture); + this.tabPageDisplay.Location = new System.Drawing.Point(4, 22); + this.tabPageDisplay.Name = "tabPageDisplay"; + this.tabPageDisplay.Padding = new System.Windows.Forms.Padding(3); + this.tabPageDisplay.Size = new System.Drawing.Size(592, 242); + this.tabPageDisplay.TabIndex = 0; + this.tabPageDisplay.Text = "Display"; + this.tabPageDisplay.UseVisualStyleBackColor = true; + // + // buttonShowClock + // + this.buttonShowClock.Location = new System.Drawing.Point(293, 124); + this.buttonShowClock.Name = "buttonShowClock"; + this.buttonShowClock.Size = new System.Drawing.Size(75, 23); + this.buttonShowClock.TabIndex = 23; + this.buttonShowClock.Text = "Show Clock"; + this.buttonShowClock.UseVisualStyleBackColor = true; + this.buttonShowClock.Click += new System.EventHandler(this.buttonShowClock_Click); + // + // buttonHideClock + // + this.buttonHideClock.Location = new System.Drawing.Point(293, 153); + this.buttonHideClock.Name = "buttonHideClock"; + this.buttonHideClock.Size = new System.Drawing.Size(75, 23); + this.buttonHideClock.TabIndex = 22; + this.buttonHideClock.Text = "Hide Clock"; + this.buttonHideClock.UseVisualStyleBackColor = true; + this.buttonHideClock.Click += new System.EventHandler(this.buttonHideClock_Click); + // + // buttonPowerOff + // + this.buttonPowerOff.Location = new System.Drawing.Point(293, 211); + this.buttonPowerOff.Name = "buttonPowerOff"; + this.buttonPowerOff.Size = new System.Drawing.Size(75, 23); + this.buttonPowerOff.TabIndex = 21; + this.buttonPowerOff.Text = "OFF"; + this.buttonPowerOff.UseVisualStyleBackColor = true; + this.buttonPowerOff.Click += new System.EventHandler(this.buttonPowerOff_Click); + // + // buttonPowerOn + // + this.buttonPowerOn.Location = new System.Drawing.Point(293, 182); + this.buttonPowerOn.Name = "buttonPowerOn"; + this.buttonPowerOn.Size = new System.Drawing.Size(75, 23); + this.buttonPowerOn.TabIndex = 20; + this.buttonPowerOn.Text = "ON"; + this.buttonPowerOn.UseVisualStyleBackColor = true; + this.buttonPowerOn.Click += new System.EventHandler(this.buttonPowerOn_Click); + // + // labelTimerInterval + // + this.labelTimerInterval.AutoSize = true; + this.labelTimerInterval.Location = new System.Drawing.Point(184, 45); + this.labelTimerInterval.Name = "labelTimerInterval"; + this.labelTimerInterval.Size = new System.Drawing.Size(98, 13); + this.labelTimerInterval.TabIndex = 19; + this.labelTimerInterval.Text = "Timer interval (ms) :"; + // + // maskedTextBoxTimerInterval + // + this.maskedTextBoxTimerInterval.Location = new System.Drawing.Point(288, 42); + this.maskedTextBoxTimerInterval.Mask = "000"; + this.maskedTextBoxTimerInterval.Name = "maskedTextBoxTimerInterval"; + this.maskedTextBoxTimerInterval.PromptChar = ' '; + this.maskedTextBoxTimerInterval.Size = new System.Drawing.Size(24, 20); + this.maskedTextBoxTimerInterval.TabIndex = 18; + this.maskedTextBoxTimerInterval.TextChanged += new System.EventHandler(this.maskedTextBoxTimerInterval_TextChanged); + // + // comboBoxDisplayType + // + this.comboBoxDisplayType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxDisplayType.FormattingEnabled = true; + this.comboBoxDisplayType.Items.AddRange(new object[] { "Auto Detect", "Futaba GP1212A01A", "Futaba GP1212A02A"}); - this.comboBoxDisplayType.Location = new System.Drawing.Point(187, 9); - this.comboBoxDisplayType.Name = "comboBoxDisplayType"; - this.comboBoxDisplayType.Size = new System.Drawing.Size(181, 21); - this.comboBoxDisplayType.TabIndex = 17; - this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.comboBoxDisplayType_SelectedIndexChanged); - // - // buttonSuspend - // - this.buttonSuspend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonSuspend.Location = new System.Drawing.Point(6, 184); - this.buttonSuspend.Name = "buttonSuspend"; - this.buttonSuspend.Size = new System.Drawing.Size(75, 23); - this.buttonSuspend.TabIndex = 16; - this.buttonSuspend.Text = "Pause"; - this.buttonSuspend.UseVisualStyleBackColor = true; - this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click); - // - // checkBoxConnectOnStartup - // - this.checkBoxConnectOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxConnectOnStartup.AutoSize = true; - this.checkBoxConnectOnStartup.Location = new System.Drawing.Point(113, 217); - this.checkBoxConnectOnStartup.Name = "checkBoxConnectOnStartup"; - this.checkBoxConnectOnStartup.Size = new System.Drawing.Size(119, 17); - this.checkBoxConnectOnStartup.TabIndex = 13; - this.checkBoxConnectOnStartup.Text = "Connect on stratup "; - this.checkBoxConnectOnStartup.UseVisualStyleBackColor = true; - this.checkBoxConnectOnStartup.CheckedChanged += new System.EventHandler(this.checkBoxConnectOnStartup_CheckedChanged); - // - // trackBarBrightness - // - this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.comboBoxDisplayType.Location = new System.Drawing.Point(187, 9); + this.comboBoxDisplayType.Name = "comboBoxDisplayType"; + this.comboBoxDisplayType.Size = new System.Drawing.Size(181, 21); + this.comboBoxDisplayType.TabIndex = 17; + this.comboBoxDisplayType.SelectedIndexChanged += new System.EventHandler(this.comboBoxDisplayType_SelectedIndexChanged); + // + // buttonSuspend + // + this.buttonSuspend.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonSuspend.Location = new System.Drawing.Point(6, 184); + this.buttonSuspend.Name = "buttonSuspend"; + this.buttonSuspend.Size = new System.Drawing.Size(75, 23); + this.buttonSuspend.TabIndex = 16; + this.buttonSuspend.Text = "Pause"; + this.buttonSuspend.UseVisualStyleBackColor = true; + this.buttonSuspend.Click += new System.EventHandler(this.buttonSuspend_Click); + // + // checkBoxConnectOnStartup + // + this.checkBoxConnectOnStartup.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxConnectOnStartup.AutoSize = true; + this.checkBoxConnectOnStartup.Location = new System.Drawing.Point(113, 217); + this.checkBoxConnectOnStartup.Name = "checkBoxConnectOnStartup"; + this.checkBoxConnectOnStartup.Size = new System.Drawing.Size(119, 17); + this.checkBoxConnectOnStartup.TabIndex = 13; + this.checkBoxConnectOnStartup.Text = "Connect on stratup "; + this.checkBoxConnectOnStartup.UseVisualStyleBackColor = true; + this.checkBoxConnectOnStartup.CheckedChanged += new System.EventHandler(this.checkBoxConnectOnStartup_CheckedChanged); + // + // trackBarBrightness + // + this.trackBarBrightness.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); - this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window; - this.trackBarBrightness.Location = new System.Drawing.Point(544, 9); - this.trackBarBrightness.Name = "trackBarBrightness"; - this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical; - this.trackBarBrightness.Size = new System.Drawing.Size(45, 225); - this.trackBarBrightness.TabIndex = 10; - this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both; - this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll); - // - // buttonFill - // - this.buttonFill.Location = new System.Drawing.Point(6, 93); - this.buttonFill.Name = "buttonFill"; - this.buttonFill.Size = new System.Drawing.Size(75, 23); - this.buttonFill.TabIndex = 9; - this.buttonFill.Text = "Fill"; - this.buttonFill.UseVisualStyleBackColor = true; - this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click); - // - // buttonClear - // - this.buttonClear.Location = new System.Drawing.Point(6, 64); - this.buttonClear.Name = "buttonClear"; - this.buttonClear.Size = new System.Drawing.Size(75, 23); - this.buttonClear.TabIndex = 8; - this.buttonClear.Text = "Clear"; - this.buttonClear.UseVisualStyleBackColor = true; - this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click); - // - // buttonClose - // - this.buttonClose.Location = new System.Drawing.Point(6, 35); - this.buttonClose.Name = "buttonClose"; - this.buttonClose.Size = new System.Drawing.Size(75, 23); - this.buttonClose.TabIndex = 7; - this.buttonClose.Text = "Close"; - this.buttonClose.UseVisualStyleBackColor = true; - this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); - // - // buttonOpen - // - this.buttonOpen.Location = new System.Drawing.Point(6, 6); - this.buttonOpen.Name = "buttonOpen"; - this.buttonOpen.Size = new System.Drawing.Size(75, 23); - this.buttonOpen.TabIndex = 6; - this.buttonOpen.Text = "Open"; - this.buttonOpen.UseVisualStyleBackColor = true; - this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click); - // - // buttonCapture - // - this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonCapture.Location = new System.Drawing.Point(6, 213); - this.buttonCapture.Name = "buttonCapture"; - this.buttonCapture.Size = new System.Drawing.Size(75, 23); - this.buttonCapture.TabIndex = 5; - this.buttonCapture.Text = "Capture"; - this.buttonCapture.UseVisualStyleBackColor = true; - this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click); - // - // labelWarning - // - this.labelWarning.AutoSize = true; - this.labelWarning.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelWarning.ForeColor = System.Drawing.Color.Red; - this.labelWarning.Location = new System.Drawing.Point(9, 9); - this.labelWarning.Name = "labelWarning"; - this.labelWarning.Size = new System.Drawing.Size(80, 16); - this.labelWarning.TabIndex = 18; - this.labelWarning.Text = "WARNING"; - this.labelWarning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labelWarning.Visible = false; - // - // checkBoxFixedPitchFontOnly - // - this.checkBoxFixedPitchFontOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.checkBoxFixedPitchFontOnly.AutoSize = true; - this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(87, 217); - this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly"; - this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17); - this.checkBoxFixedPitchFontOnly.TabIndex = 17; - this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only"; - this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true; - // - // checkBoxShowBorders - // - this.checkBoxShowBorders.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBoxShowBorders.AutoSize = true; - this.checkBoxShowBorders.Location = new System.Drawing.Point(485, 29); - this.checkBoxShowBorders.Name = "checkBoxShowBorders"; - this.checkBoxShowBorders.Size = new System.Drawing.Size(91, 17); - this.checkBoxShowBorders.TabIndex = 11; - this.checkBoxShowBorders.Text = "Show borders"; - this.checkBoxShowBorders.UseVisualStyleBackColor = true; - this.checkBoxShowBorders.CheckedChanged += new System.EventHandler(this.checkBoxShowBorders_CheckedChanged); - // - // buttonFont - // - this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.buttonFont.Location = new System.Drawing.Point(6, 213); - this.buttonFont.Name = "buttonFont"; - this.buttonFont.Size = new System.Drawing.Size(75, 23); - this.buttonFont.TabIndex = 0; - this.buttonFont.Text = "Select Font"; - this.buttonFont.UseVisualStyleBackColor = true; - this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click); - // - // tabControl - // - this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.trackBarBrightness.BackColor = System.Drawing.SystemColors.Window; + this.trackBarBrightness.Location = new System.Drawing.Point(544, 9); + this.trackBarBrightness.Name = "trackBarBrightness"; + this.trackBarBrightness.Orientation = System.Windows.Forms.Orientation.Vertical; + this.trackBarBrightness.Size = new System.Drawing.Size(45, 225); + this.trackBarBrightness.TabIndex = 10; + this.trackBarBrightness.TickStyle = System.Windows.Forms.TickStyle.Both; + this.trackBarBrightness.Scroll += new System.EventHandler(this.trackBarBrightness_Scroll); + // + // buttonFill + // + this.buttonFill.Location = new System.Drawing.Point(6, 93); + this.buttonFill.Name = "buttonFill"; + this.buttonFill.Size = new System.Drawing.Size(75, 23); + this.buttonFill.TabIndex = 9; + this.buttonFill.Text = "Fill"; + this.buttonFill.UseVisualStyleBackColor = true; + this.buttonFill.Click += new System.EventHandler(this.buttonFill_Click); + // + // buttonClear + // + this.buttonClear.Location = new System.Drawing.Point(6, 64); + this.buttonClear.Name = "buttonClear"; + this.buttonClear.Size = new System.Drawing.Size(75, 23); + this.buttonClear.TabIndex = 8; + this.buttonClear.Text = "Clear"; + this.buttonClear.UseVisualStyleBackColor = true; + this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click); + // + // buttonClose + // + this.buttonClose.Location = new System.Drawing.Point(6, 35); + this.buttonClose.Name = "buttonClose"; + this.buttonClose.Size = new System.Drawing.Size(75, 23); + this.buttonClose.TabIndex = 7; + this.buttonClose.Text = "Close"; + this.buttonClose.UseVisualStyleBackColor = true; + this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); + // + // buttonOpen + // + this.buttonOpen.Location = new System.Drawing.Point(6, 6); + this.buttonOpen.Name = "buttonOpen"; + this.buttonOpen.Size = new System.Drawing.Size(75, 23); + this.buttonOpen.TabIndex = 6; + this.buttonOpen.Text = "Open"; + this.buttonOpen.UseVisualStyleBackColor = true; + this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click); + // + // buttonCapture + // + this.buttonCapture.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonCapture.Location = new System.Drawing.Point(6, 213); + this.buttonCapture.Name = "buttonCapture"; + this.buttonCapture.Size = new System.Drawing.Size(75, 23); + this.buttonCapture.TabIndex = 5; + this.buttonCapture.Text = "Capture"; + this.buttonCapture.UseVisualStyleBackColor = true; + this.buttonCapture.Click += new System.EventHandler(this.buttonCapture_Click); + // + // labelWarning + // + this.labelWarning.AutoSize = true; + this.labelWarning.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelWarning.ForeColor = System.Drawing.Color.Red; + this.labelWarning.Location = new System.Drawing.Point(9, 9); + this.labelWarning.Name = "labelWarning"; + this.labelWarning.Size = new System.Drawing.Size(80, 16); + this.labelWarning.TabIndex = 18; + this.labelWarning.Text = "WARNING"; + this.labelWarning.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.labelWarning.Visible = false; + // + // checkBoxFixedPitchFontOnly + // + this.checkBoxFixedPitchFontOnly.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxFixedPitchFontOnly.AutoSize = true; + this.checkBoxFixedPitchFontOnly.Location = new System.Drawing.Point(87, 217); + this.checkBoxFixedPitchFontOnly.Name = "checkBoxFixedPitchFontOnly"; + this.checkBoxFixedPitchFontOnly.Size = new System.Drawing.Size(120, 17); + this.checkBoxFixedPitchFontOnly.TabIndex = 17; + this.checkBoxFixedPitchFontOnly.Text = "Fixed pitch font only"; + this.checkBoxFixedPitchFontOnly.UseVisualStyleBackColor = true; + // + // checkBoxShowBorders + // + this.checkBoxShowBorders.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxShowBorders.AutoSize = true; + this.checkBoxShowBorders.Location = new System.Drawing.Point(485, 29); + this.checkBoxShowBorders.Name = "checkBoxShowBorders"; + this.checkBoxShowBorders.Size = new System.Drawing.Size(91, 17); + this.checkBoxShowBorders.TabIndex = 11; + this.checkBoxShowBorders.Text = "Show borders"; + this.checkBoxShowBorders.UseVisualStyleBackColor = true; + this.checkBoxShowBorders.CheckedChanged += new System.EventHandler(this.checkBoxShowBorders_CheckedChanged); + // + // buttonFont + // + this.buttonFont.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonFont.Location = new System.Drawing.Point(6, 213); + this.buttonFont.Name = "buttonFont"; + this.buttonFont.Size = new System.Drawing.Size(75, 23); + this.buttonFont.TabIndex = 0; + this.buttonFont.Text = "Select Font"; + this.buttonFont.UseVisualStyleBackColor = true; + this.buttonFont.Click += new System.EventHandler(this.buttonFont_Click); + // + // tabControl + // + this.tabControl.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.tabControl.Controls.Add(this.tabPageDisplay); - this.tabControl.Controls.Add(this.tabPageClients); - this.tabControl.Controls.Add(this.tabPageDesign); - this.tabControl.Controls.Add(this.tabPageApp); - this.tabControl.Location = new System.Drawing.Point(12, 139); - this.tabControl.Name = "tabControl"; - this.tabControl.SelectedIndex = 0; - this.tabControl.Size = new System.Drawing.Size(600, 268); - this.tabControl.TabIndex = 0; - // - // tabPageDesign - // - this.tabPageDesign.Controls.Add(this.checkBoxInverseColors); - this.tabPageDesign.Controls.Add(this.buttonAlignRight); - this.tabPageDesign.Controls.Add(this.buttonAlignCenter); - this.tabPageDesign.Controls.Add(this.buttonAlignLeft); - this.tabPageDesign.Controls.Add(this.buttonRemoveColumn); - this.tabPageDesign.Controls.Add(this.checkBoxFixedPitchFontOnly); - this.tabPageDesign.Controls.Add(this.buttonAddColumn); - this.tabPageDesign.Controls.Add(this.buttonFont); - this.tabPageDesign.Controls.Add(this.checkBoxReverseScreen); - this.tabPageDesign.Controls.Add(this.buttonRemoveRow); - this.tabPageDesign.Controls.Add(this.buttonAddRow); - this.tabPageDesign.Controls.Add(this.checkBoxShowBorders); - this.tabPageDesign.Location = new System.Drawing.Point(4, 22); - this.tabPageDesign.Name = "tabPageDesign"; - this.tabPageDesign.Padding = new System.Windows.Forms.Padding(3); - this.tabPageDesign.Size = new System.Drawing.Size(592, 242); - this.tabPageDesign.TabIndex = 3; - this.tabPageDesign.Text = "Design"; - this.tabPageDesign.UseVisualStyleBackColor = true; - // - // checkBoxInverseColors - // - this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBoxInverseColors.AutoSize = true; - this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52); - this.checkBoxInverseColors.Name = "checkBoxInverseColors"; - this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17); - this.checkBoxInverseColors.TabIndex = 21; - this.checkBoxInverseColors.Text = "Inverse colors"; - this.checkBoxInverseColors.UseVisualStyleBackColor = true; - this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged); - // - // buttonAlignRight - // - this.buttonAlignRight.Location = new System.Drawing.Point(171, 105); - this.buttonAlignRight.Name = "buttonAlignRight"; - this.buttonAlignRight.Size = new System.Drawing.Size(75, 23); - this.buttonAlignRight.TabIndex = 20; - this.buttonAlignRight.Text = "Align Right"; - this.buttonAlignRight.UseVisualStyleBackColor = true; - this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click); - // - // buttonAlignCenter - // - this.buttonAlignCenter.Location = new System.Drawing.Point(89, 106); - this.buttonAlignCenter.Name = "buttonAlignCenter"; - this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23); - this.buttonAlignCenter.TabIndex = 19; - this.buttonAlignCenter.Text = "Align Center"; - this.buttonAlignCenter.UseVisualStyleBackColor = true; - this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click); - // - // buttonAlignLeft - // - this.buttonAlignLeft.Location = new System.Drawing.Point(7, 106); - this.buttonAlignLeft.Name = "buttonAlignLeft"; - this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23); - this.buttonAlignLeft.TabIndex = 18; - this.buttonAlignLeft.Text = "Align Left"; - this.buttonAlignLeft.UseVisualStyleBackColor = true; - this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click); - // - // buttonRemoveColumn - // - this.buttonRemoveColumn.Location = new System.Drawing.Point(89, 37); - this.buttonRemoveColumn.Name = "buttonRemoveColumn"; - this.buttonRemoveColumn.Size = new System.Drawing.Size(75, 23); - this.buttonRemoveColumn.TabIndex = 3; - this.buttonRemoveColumn.Text = "Remove col."; - this.buttonRemoveColumn.UseVisualStyleBackColor = true; - this.buttonRemoveColumn.Click += new System.EventHandler(this.buttonRemoveColumn_Click); - // - // buttonAddColumn - // - this.buttonAddColumn.Location = new System.Drawing.Point(89, 7); - this.buttonAddColumn.Name = "buttonAddColumn"; - this.buttonAddColumn.Size = new System.Drawing.Size(75, 23); - this.buttonAddColumn.TabIndex = 2; - this.buttonAddColumn.Text = "Add column"; - this.buttonAddColumn.UseVisualStyleBackColor = true; - this.buttonAddColumn.Click += new System.EventHandler(this.buttonAddColumn_Click); - // - // checkBoxReverseScreen - // - this.checkBoxReverseScreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.checkBoxReverseScreen.AutoSize = true; - this.checkBoxReverseScreen.Location = new System.Drawing.Point(485, 6); - this.checkBoxReverseScreen.Name = "checkBoxReverseScreen"; - this.checkBoxReverseScreen.Size = new System.Drawing.Size(101, 17); - this.checkBoxReverseScreen.TabIndex = 14; - this.checkBoxReverseScreen.Text = "Reverse screen"; - this.checkBoxReverseScreen.UseVisualStyleBackColor = true; - this.checkBoxReverseScreen.CheckedChanged += new System.EventHandler(this.checkBoxReverseScreen_CheckedChanged); - // - // buttonRemoveRow - // - this.buttonRemoveRow.Location = new System.Drawing.Point(7, 37); - this.buttonRemoveRow.Name = "buttonRemoveRow"; - this.buttonRemoveRow.Size = new System.Drawing.Size(75, 23); - this.buttonRemoveRow.TabIndex = 1; - this.buttonRemoveRow.Text = "Remove row"; - this.buttonRemoveRow.UseVisualStyleBackColor = true; - this.buttonRemoveRow.Click += new System.EventHandler(this.buttonRemoveRow_Click); - // - // buttonAddRow - // - this.buttonAddRow.Location = new System.Drawing.Point(7, 7); - this.buttonAddRow.Name = "buttonAddRow"; - this.buttonAddRow.Size = new System.Drawing.Size(75, 23); - this.buttonAddRow.TabIndex = 0; - this.buttonAddRow.Text = "Add row"; - this.buttonAddRow.UseVisualStyleBackColor = true; - this.buttonAddRow.Click += new System.EventHandler(this.buttonAddRow_Click); - // - // labelFontWidth - // - this.labelFontWidth.AutoSize = true; - this.labelFontWidth.Location = new System.Drawing.Point(13, 29); - this.labelFontWidth.Name = "labelFontWidth"; - this.labelFontWidth.Size = new System.Drawing.Size(56, 13); - this.labelFontWidth.TabIndex = 19; - this.labelFontWidth.Text = "Font width"; - // - // labelFontHeight - // - this.labelFontHeight.AutoSize = true; - this.labelFontHeight.Location = new System.Drawing.Point(13, 46); - this.labelFontHeight.Name = "labelFontHeight"; - this.labelFontHeight.Size = new System.Drawing.Size(60, 13); - this.labelFontHeight.TabIndex = 20; - this.labelFontHeight.Text = "Font height"; - // - // pictureBoxDemo - // - this.pictureBoxDemo.Location = new System.Drawing.Point(478, 54); - this.pictureBoxDemo.Name = "pictureBoxDemo"; - this.pictureBoxDemo.Size = new System.Drawing.Size(100, 50); - this.pictureBoxDemo.TabIndex = 21; - this.pictureBoxDemo.TabStop = false; - // - // tabPageApp - // - this.tabPageApp.Controls.Add(this.buttonUpdate); - this.tabPageApp.Location = new System.Drawing.Point(4, 22); - this.tabPageApp.Name = "tabPageApp"; - this.tabPageApp.Padding = new System.Windows.Forms.Padding(3); - this.tabPageApp.Size = new System.Drawing.Size(592, 242); - this.tabPageApp.TabIndex = 4; - this.tabPageApp.Text = "Application"; - this.tabPageApp.UseVisualStyleBackColor = true; - // - // buttonUpdate - // - this.buttonUpdate.Location = new System.Drawing.Point(6, 213); - this.buttonUpdate.Name = "buttonUpdate"; - this.buttonUpdate.Size = new System.Drawing.Size(75, 23); - this.buttonUpdate.TabIndex = 0; - this.buttonUpdate.Text = "Update"; - this.buttonUpdate.UseVisualStyleBackColor = true; - this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); - // - // MainForm - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(624, 442); - this.Controls.Add(this.pictureBoxDemo); - this.Controls.Add(this.labelFontHeight); - this.Controls.Add(this.labelFontWidth); - this.Controls.Add(this.labelWarning); - this.Controls.Add(this.statusStrip); - this.Controls.Add(this.tabControl); - this.Controls.Add(this.panelDisplay); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.MinimumSize = new System.Drawing.Size(640, 480); - this.Name = "MainForm"; - this.Text = "Sharp Display Manager"; - this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); - this.Load += new System.EventHandler(this.MainForm_Load); - this.Resize += new System.EventHandler(this.MainForm_Resize); - this.panelDisplay.ResumeLayout(false); - this.tableLayoutPanel.ResumeLayout(false); - this.tableLayoutPanel.PerformLayout(); - this.statusStrip.ResumeLayout(false); - this.statusStrip.PerformLayout(); - this.tabPageClients.ResumeLayout(false); - this.tabPageDisplay.ResumeLayout(false); - this.tabPageDisplay.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit(); - this.tabControl.ResumeLayout(false); - this.tabPageDesign.ResumeLayout(false); - this.tabPageDesign.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).EndInit(); - this.tabPageApp.ResumeLayout(false); - this.ResumeLayout(false); - this.PerformLayout(); + this.tabControl.Controls.Add(this.tabPageDisplay); + this.tabControl.Controls.Add(this.tabPageClients); + this.tabControl.Controls.Add(this.tabPageDesign); + this.tabControl.Controls.Add(this.tabPageApp); + this.tabControl.Location = new System.Drawing.Point(12, 139); + this.tabControl.Name = "tabControl"; + this.tabControl.SelectedIndex = 0; + this.tabControl.Size = new System.Drawing.Size(600, 268); + this.tabControl.TabIndex = 0; + // + // tabPageDesign + // + this.tabPageDesign.Controls.Add(this.checkBoxInverseColors); + this.tabPageDesign.Controls.Add(this.buttonAlignRight); + this.tabPageDesign.Controls.Add(this.buttonAlignCenter); + this.tabPageDesign.Controls.Add(this.buttonAlignLeft); + this.tabPageDesign.Controls.Add(this.buttonRemoveColumn); + this.tabPageDesign.Controls.Add(this.checkBoxFixedPitchFontOnly); + this.tabPageDesign.Controls.Add(this.buttonAddColumn); + this.tabPageDesign.Controls.Add(this.buttonFont); + this.tabPageDesign.Controls.Add(this.checkBoxReverseScreen); + this.tabPageDesign.Controls.Add(this.buttonRemoveRow); + this.tabPageDesign.Controls.Add(this.buttonAddRow); + this.tabPageDesign.Controls.Add(this.checkBoxShowBorders); + this.tabPageDesign.Location = new System.Drawing.Point(4, 22); + this.tabPageDesign.Name = "tabPageDesign"; + this.tabPageDesign.Padding = new System.Windows.Forms.Padding(3); + this.tabPageDesign.Size = new System.Drawing.Size(592, 242); + this.tabPageDesign.TabIndex = 3; + this.tabPageDesign.Text = "Design"; + this.tabPageDesign.UseVisualStyleBackColor = true; + // + // checkBoxInverseColors + // + this.checkBoxInverseColors.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxInverseColors.AutoSize = true; + this.checkBoxInverseColors.Location = new System.Drawing.Point(485, 52); + this.checkBoxInverseColors.Name = "checkBoxInverseColors"; + this.checkBoxInverseColors.Size = new System.Drawing.Size(92, 17); + this.checkBoxInverseColors.TabIndex = 21; + this.checkBoxInverseColors.Text = "Inverse colors"; + this.checkBoxInverseColors.UseVisualStyleBackColor = true; + this.checkBoxInverseColors.CheckedChanged += new System.EventHandler(this.checkBoxInverseColors_CheckedChanged); + // + // buttonAlignRight + // + this.buttonAlignRight.Location = new System.Drawing.Point(171, 105); + this.buttonAlignRight.Name = "buttonAlignRight"; + this.buttonAlignRight.Size = new System.Drawing.Size(75, 23); + this.buttonAlignRight.TabIndex = 20; + this.buttonAlignRight.Text = "Align Right"; + this.buttonAlignRight.UseVisualStyleBackColor = true; + this.buttonAlignRight.Click += new System.EventHandler(this.buttonAlignRight_Click); + // + // buttonAlignCenter + // + this.buttonAlignCenter.Location = new System.Drawing.Point(89, 106); + this.buttonAlignCenter.Name = "buttonAlignCenter"; + this.buttonAlignCenter.Size = new System.Drawing.Size(75, 23); + this.buttonAlignCenter.TabIndex = 19; + this.buttonAlignCenter.Text = "Align Center"; + this.buttonAlignCenter.UseVisualStyleBackColor = true; + this.buttonAlignCenter.Click += new System.EventHandler(this.buttonAlignCenter_Click); + // + // buttonAlignLeft + // + this.buttonAlignLeft.Location = new System.Drawing.Point(7, 106); + this.buttonAlignLeft.Name = "buttonAlignLeft"; + this.buttonAlignLeft.Size = new System.Drawing.Size(75, 23); + this.buttonAlignLeft.TabIndex = 18; + this.buttonAlignLeft.Text = "Align Left"; + this.buttonAlignLeft.UseVisualStyleBackColor = true; + this.buttonAlignLeft.Click += new System.EventHandler(this.buttonAlignLeft_Click); + // + // buttonRemoveColumn + // + this.buttonRemoveColumn.Location = new System.Drawing.Point(89, 37); + this.buttonRemoveColumn.Name = "buttonRemoveColumn"; + this.buttonRemoveColumn.Size = new System.Drawing.Size(75, 23); + this.buttonRemoveColumn.TabIndex = 3; + this.buttonRemoveColumn.Text = "Remove col."; + this.buttonRemoveColumn.UseVisualStyleBackColor = true; + this.buttonRemoveColumn.Click += new System.EventHandler(this.buttonRemoveColumn_Click); + // + // buttonAddColumn + // + this.buttonAddColumn.Location = new System.Drawing.Point(89, 7); + this.buttonAddColumn.Name = "buttonAddColumn"; + this.buttonAddColumn.Size = new System.Drawing.Size(75, 23); + this.buttonAddColumn.TabIndex = 2; + this.buttonAddColumn.Text = "Add column"; + this.buttonAddColumn.UseVisualStyleBackColor = true; + this.buttonAddColumn.Click += new System.EventHandler(this.buttonAddColumn_Click); + // + // checkBoxReverseScreen + // + this.checkBoxReverseScreen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.checkBoxReverseScreen.AutoSize = true; + this.checkBoxReverseScreen.Location = new System.Drawing.Point(485, 6); + this.checkBoxReverseScreen.Name = "checkBoxReverseScreen"; + this.checkBoxReverseScreen.Size = new System.Drawing.Size(101, 17); + this.checkBoxReverseScreen.TabIndex = 14; + this.checkBoxReverseScreen.Text = "Reverse screen"; + this.checkBoxReverseScreen.UseVisualStyleBackColor = true; + this.checkBoxReverseScreen.CheckedChanged += new System.EventHandler(this.checkBoxReverseScreen_CheckedChanged); + // + // buttonRemoveRow + // + this.buttonRemoveRow.Location = new System.Drawing.Point(7, 37); + this.buttonRemoveRow.Name = "buttonRemoveRow"; + this.buttonRemoveRow.Size = new System.Drawing.Size(75, 23); + this.buttonRemoveRow.TabIndex = 1; + this.buttonRemoveRow.Text = "Remove row"; + this.buttonRemoveRow.UseVisualStyleBackColor = true; + this.buttonRemoveRow.Click += new System.EventHandler(this.buttonRemoveRow_Click); + // + // buttonAddRow + // + this.buttonAddRow.Location = new System.Drawing.Point(7, 7); + this.buttonAddRow.Name = "buttonAddRow"; + this.buttonAddRow.Size = new System.Drawing.Size(75, 23); + this.buttonAddRow.TabIndex = 0; + this.buttonAddRow.Text = "Add row"; + this.buttonAddRow.UseVisualStyleBackColor = true; + this.buttonAddRow.Click += new System.EventHandler(this.buttonAddRow_Click); + // + // tabPageApp + // + this.tabPageApp.Controls.Add(this.checkBoxAutoStart); + this.tabPageApp.Controls.Add(this.buttonUpdate); + this.tabPageApp.Location = new System.Drawing.Point(4, 22); + this.tabPageApp.Name = "tabPageApp"; + this.tabPageApp.Padding = new System.Windows.Forms.Padding(3); + this.tabPageApp.Size = new System.Drawing.Size(592, 242); + this.tabPageApp.TabIndex = 4; + this.tabPageApp.Text = "Application"; + this.tabPageApp.UseVisualStyleBackColor = true; + // + // checkBoxAutoStart + // + this.checkBoxAutoStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.checkBoxAutoStart.AutoSize = true; + this.checkBoxAutoStart.Location = new System.Drawing.Point(8, 190); + this.checkBoxAutoStart.Name = "checkBoxAutoStart"; + this.checkBoxAutoStart.Size = new System.Drawing.Size(73, 17); + this.checkBoxAutoStart.TabIndex = 14; + this.checkBoxAutoStart.Text = "Auto Start"; + this.checkBoxAutoStart.UseVisualStyleBackColor = true; + this.checkBoxAutoStart.CheckedChanged += new System.EventHandler(this.checkBoxAutoStart_CheckedChanged); + // + // buttonUpdate + // + this.buttonUpdate.Location = new System.Drawing.Point(6, 213); + this.buttonUpdate.Name = "buttonUpdate"; + this.buttonUpdate.Size = new System.Drawing.Size(75, 23); + this.buttonUpdate.TabIndex = 0; + this.buttonUpdate.Text = "Update"; + this.buttonUpdate.UseVisualStyleBackColor = true; + this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); + // + // labelFontWidth + // + this.labelFontWidth.AutoSize = true; + this.labelFontWidth.Location = new System.Drawing.Point(13, 29); + this.labelFontWidth.Name = "labelFontWidth"; + this.labelFontWidth.Size = new System.Drawing.Size(56, 13); + this.labelFontWidth.TabIndex = 19; + this.labelFontWidth.Text = "Font width"; + // + // labelFontHeight + // + this.labelFontHeight.AutoSize = true; + this.labelFontHeight.Location = new System.Drawing.Point(13, 46); + this.labelFontHeight.Name = "labelFontHeight"; + this.labelFontHeight.Size = new System.Drawing.Size(60, 13); + this.labelFontHeight.TabIndex = 20; + this.labelFontHeight.Text = "Font height"; + // + // pictureBoxDemo + // + this.pictureBoxDemo.Location = new System.Drawing.Point(478, 54); + this.pictureBoxDemo.Name = "pictureBoxDemo"; + this.pictureBoxDemo.Size = new System.Drawing.Size(100, 50); + this.pictureBoxDemo.TabIndex = 21; + this.pictureBoxDemo.TabStop = false; + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(624, 442); + this.Controls.Add(this.pictureBoxDemo); + this.Controls.Add(this.labelFontHeight); + this.Controls.Add(this.labelFontWidth); + this.Controls.Add(this.labelWarning); + this.Controls.Add(this.statusStrip); + this.Controls.Add(this.tabControl); + this.Controls.Add(this.panelDisplay); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MinimumSize = new System.Drawing.Size(640, 480); + this.Name = "MainForm"; + this.Text = "Sharp Display Manager"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing); + this.Load += new System.EventHandler(this.MainForm_Load); + this.Resize += new System.EventHandler(this.MainForm_Resize); + this.panelDisplay.ResumeLayout(false); + this.tableLayoutPanel.ResumeLayout(false); + this.tableLayoutPanel.PerformLayout(); + this.statusStrip.ResumeLayout(false); + this.statusStrip.PerformLayout(); + this.tabPageClients.ResumeLayout(false); + this.tabPageDisplay.ResumeLayout(false); + this.tabPageDisplay.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.trackBarBrightness)).EndInit(); + this.tabControl.ResumeLayout(false); + this.tabPageDesign.ResumeLayout(false); + this.tabPageDesign.PerformLayout(); + this.tabPageApp.ResumeLayout(false); + this.tabPageApp.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxDemo)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); } @@ -749,6 +764,7 @@ private System.Windows.Forms.PictureBox pictureBoxDemo; private System.Windows.Forms.TabPage tabPageApp; private System.Windows.Forms.Button buttonUpdate; + private System.Windows.Forms.CheckBox checkBoxAutoStart; } } diff -r 61e2e2d41c0a -r 787dee27fc0a Server/MainForm.cs --- a/Server/MainForm.cs Sat Jan 17 18:26:41 2015 +0100 +++ b/Server/MainForm.cs Sun Jan 18 12:35:22 2015 +0100 @@ -57,6 +57,9 @@ //Function pointer for pixel Y coordinate intercept CoordinateTranslationDelegate iScreenY; + // + private StartupManager iStartupManager; + public MainForm() { iCurrentClientSessionId = ""; @@ -64,6 +67,7 @@ LastTickTime = DateTime.Now; iDisplay = new Display(); iClients = new Dictionary(); + iStartupManager = new StartupManager(); InitializeComponent(); UpdateStatus(); @@ -89,6 +93,9 @@ { OpenDisplayConnection(); } + + // + checkBoxAutoStart.Checked=iStartupManager.Startup; } /// @@ -1405,6 +1412,11 @@ } } } + + private void checkBoxAutoStart_CheckedChanged(object sender, EventArgs e) + { + iStartupManager.Startup = checkBoxAutoStart.Checked; + } } /// diff -r 61e2e2d41c0a -r 787dee27fc0a Server/Program.cs --- a/Server/Program.cs Sat Jan 17 18:26:41 2015 +0100 +++ b/Server/Program.cs Sun Jan 18 12:35:22 2015 +0100 @@ -3,6 +3,9 @@ using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; +using System.Security.Principal; +using System.Diagnostics; +using System.Reflection; namespace SharpDisplayManager { @@ -16,7 +19,35 @@ /// [STAThread] static void Main() - { + { + + /* + if (!IsRunAsAdministrator()) + { + var processInfo = new ProcessStartInfo(Assembly.GetExecutingAssembly().CodeBase); + + // The following properties run the new process as administrator + processInfo.UseShellExecute = true; + processInfo.Verb = "runas"; + + // Start the new process + try + { + Process.Start(processInfo); + } + catch (Exception) + { + // The user did not allow the application to run as administrator + MessageBox.Show("Sorry, this application must be run as Administrator."); + } + + // Shut down the current process + Application.Exit(); + return; + //Application.Current.Shutdown(); + }*/ + + Application.ApplicationExit += new EventHandler(OnApplicationExit); // Application.EnableVisualStyles(); @@ -25,6 +56,16 @@ Application.Run(iMainForm); } + + + static private bool IsRunAsAdministrator() + { + var wi = WindowsIdentity.GetCurrent(); + var wp = new WindowsPrincipal(wi); + + return wp.IsInRole(WindowsBuiltInRole.Administrator); + } + /// /// Occurs after form closing. /// diff -r 61e2e2d41c0a -r 787dee27fc0a Server/SharpDisplayManager.csproj --- a/Server/SharpDisplayManager.csproj Sat Jan 17 18:26:41 2015 +0100 +++ b/Server/SharpDisplayManager.csproj Sun Jan 18 12:35:22 2015 +0100 @@ -30,7 +30,7 @@ true index.htm false - 14 + 15 0.1.0.%2a false true @@ -109,6 +109,7 @@ + @@ -142,6 +143,8 @@ + + diff -r 61e2e2d41c0a -r 787dee27fc0a Server/StartupManager.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Server/StartupManager.cs Sun Jan 18 12:35:22 2015 +0100 @@ -0,0 +1,246 @@ +/* + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + Copyright (C) 2009-2010 Michael Möller + +*/ + +using Microsoft.Win32; +using SharpDisplayManager.TaskScheduler; +using System; +using System.IO; +using System.Runtime.InteropServices; +using System.Security; +using System.Security.Principal; +using System.Windows.Forms; + +namespace SharpDisplayManager +{ + public class StartupManager + { + private TaskSchedulerClass scheduler; + private bool startup; + private bool isAvailable; + + private const string REGISTRY_RUN = + @"Software\Microsoft\Windows\CurrentVersion\Run"; + + private bool IsAdministrator() + { + try + { + WindowsIdentity identity = WindowsIdentity.GetCurrent(); + WindowsPrincipal principal = new WindowsPrincipal(identity); + return principal.IsInRole(WindowsBuiltInRole.Administrator); + } + catch + { + return false; + } + } + + public StartupManager() + { + int p = (int)System.Environment.OSVersion.Platform; + if ((p == 4) || (p == 128)) + { + scheduler = null; + isAvailable = false; + return; + } + + if (IsAdministrator()) + { + try + { + scheduler = new TaskSchedulerClass(); + scheduler.Connect(null, null, null, null); + } + catch + { + scheduler = null; + } + + if (scheduler != null) + { + try + { + // check if the task scheduler is running + IRunningTaskCollection collection = scheduler.GetRunningTasks(0); + + ITaskFolder folder = scheduler.GetFolder("\\Sharp Display Manager"); + IRegisteredTask task = folder.GetTask("Startup"); + startup = (task != null) && + (task.Definition.Triggers.Count > 0) && + (task.Definition.Triggers[1].Type == + TASK_TRIGGER_TYPE2.TASK_TRIGGER_LOGON) && + (task.Definition.Actions.Count > 0) && + (task.Definition.Actions[1].Type == + TASK_ACTION_TYPE.TASK_ACTION_EXEC) && + (task.Definition.Actions[1] as IExecAction != null) && + ((task.Definition.Actions[1] as IExecAction).Path == + Application.ExecutablePath); + } + catch (IOException) + { + startup = false; + } + catch (UnauthorizedAccessException) + { + scheduler = null; + } + catch (COMException) + { + scheduler = null; + } + } + } + else + { + scheduler = null; + } + + if (scheduler == null) + { + try + { + using (RegistryKey key = + Registry.CurrentUser.OpenSubKey(REGISTRY_RUN)) + { + startup = false; + if (key != null) + { + string value = (string)key.GetValue("SharpDisplayManager"); + if (value != null) + startup = value == Application.ExecutablePath; + } + } + isAvailable = true; + } + catch (SecurityException) + { + isAvailable = false; + } + } + else + { + isAvailable = true; + } + } + + private void CreateSchedulerTask() + { + ITaskDefinition definition = scheduler.NewTask(0); + definition.RegistrationInfo.Description = + "This task starts the Sharp Display Manager on Windows startup."; + definition.Principal.RunLevel = + TASK_RUNLEVEL.TASK_RUNLEVEL_HIGHEST; + definition.Settings.DisallowStartIfOnBatteries = false; + definition.Settings.StopIfGoingOnBatteries = false; + definition.Settings.ExecutionTimeLimit = "PT0S"; + + ILogonTrigger trigger = (ILogonTrigger)definition.Triggers.Create( + TASK_TRIGGER_TYPE2.TASK_TRIGGER_LOGON); + + IExecAction action = (IExecAction)definition.Actions.Create( + TASK_ACTION_TYPE.TASK_ACTION_EXEC); + action.Path = Application.ExecutablePath; + action.WorkingDirectory = + Path.GetDirectoryName(Application.ExecutablePath); + + ITaskFolder root = scheduler.GetFolder("\\"); + ITaskFolder folder; + try + { + folder = root.GetFolder("Sharp Display Manager"); + } + catch (IOException) + { + folder = root.CreateFolder("Sharp Display Manager", ""); + } + folder.RegisterTaskDefinition("Startup", definition, + (int)TASK_CREATION.TASK_CREATE_OR_UPDATE, null, null, + TASK_LOGON_TYPE.TASK_LOGON_INTERACTIVE_TOKEN, ""); + } + + private void DeleteSchedulerTask() + { + ITaskFolder root = scheduler.GetFolder("\\"); + try + { + ITaskFolder folder = root.GetFolder("Sharp Display Manager"); + folder.DeleteTask("Startup", 0); + } + catch (IOException) { } + try + { + root.DeleteFolder("Sharp Display Manager", 0); + } + catch (IOException) { } + } + + private void CreateRegistryRun() + { + RegistryKey key = Registry.CurrentUser.CreateSubKey(REGISTRY_RUN); + key.SetValue("SharpDisplayManager", Application.ExecutablePath); + } + + private void DeleteRegistryRun() + { + RegistryKey key = Registry.CurrentUser.CreateSubKey(REGISTRY_RUN); + key.DeleteValue("SharpDisplayManager"); + } + + public bool IsAvailable + { + get { return isAvailable; } + } + + public bool Startup + { + get + { + return startup; + } + set + { + if (startup != value) + { + if (isAvailable) + { + if (scheduler != null) + { + if (value) + CreateSchedulerTask(); + else + DeleteSchedulerTask(); + startup = value; + } + else + { + try + { + if (value) + CreateRegistryRun(); + else + DeleteRegistryRun(); + startup = value; + } + catch (UnauthorizedAccessException) + { + throw new InvalidOperationException(); + } + } + } + else + { + throw new InvalidOperationException(); + } + } + } + } + } +} \ No newline at end of file diff -r 61e2e2d41c0a -r 787dee27fc0a Server/TaskScheduler.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Server/TaskScheduler.cs Sun Jan 18 12:35:22 2015 +0100 @@ -0,0 +1,1227 @@ +/* + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + + Copyright (C) 2009-2010 Michael Möller + +*/ + +using System; +using System.Collections; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace SharpDisplayManager.TaskScheduler +{ + [StructLayout(LayoutKind.Sequential, Pack = 2)] + public struct SYSTEMTIME + { + public ushort wYear; + public ushort wMonth; + public ushort wDayOfWeek; + public ushort wDay; + public ushort wHour; + public ushort wMinute; + public ushort wSecond; + public ushort wMilliseconds; + } + + public enum TASK_ACTION_TYPE + { + TASK_ACTION_COM_HANDLER = 5, + TASK_ACTION_EXEC = 0, + TASK_ACTION_SEND_EMAIL = 6, + TASK_ACTION_SHOW_MESSAGE = 7 + } + + public enum TASK_COMPATIBILITY + { + TASK_COMPATIBILITY_AT, + TASK_COMPATIBILITY_V1, + TASK_COMPATIBILITY_V2, + TASK_COMPATIBILITY_V2_1 + } + + public enum TASK_CREATION + { + TASK_CREATE = 2, + TASK_CREATE_OR_UPDATE = 6, + TASK_DISABLE = 8, + TASK_DONT_ADD_PRINCIPAL_ACE = 0x10, + TASK_IGNORE_REGISTRATION_TRIGGERS = 0x20, + TASK_UPDATE = 4, + TASK_VALIDATE_ONLY = 1 + } + + public enum TASK_ENUM_FLAGS + { + TASK_ENUM_HIDDEN = 1 + } + + public enum TASK_INSTANCES_POLICY + { + TASK_INSTANCES_PARALLEL, + TASK_INSTANCES_QUEUE, + TASK_INSTANCES_IGNORE_NEW, + TASK_INSTANCES_STOP_EXISTING + } + + public enum TASK_LOGON_TYPE + { + TASK_LOGON_NONE, + TASK_LOGON_PASSWORD, + TASK_LOGON_S4U, + TASK_LOGON_INTERACTIVE_TOKEN, + TASK_LOGON_GROUP, + TASK_LOGON_SERVICE_ACCOUNT, + TASK_LOGON_INTERACTIVE_TOKEN_OR_PASSWORD + } + + public enum TASK_RUN_FLAGS + { + TASK_RUN_AS_SELF = 1, + TASK_RUN_IGNORE_CONSTRAINTS = 2, + TASK_RUN_NO_FLAGS = 0, + TASK_RUN_USE_SESSION_ID = 4, + TASK_RUN_USER_SID = 8 + } + + public enum TASK_RUNLEVEL + { + TASK_RUNLEVEL_LUA, + TASK_RUNLEVEL_HIGHEST + } + + public enum TASK_SESSION_STATE_CHANGE_TYPE + { + TASK_CONSOLE_CONNECT = 1, + TASK_CONSOLE_DISCONNECT = 2, + TASK_REMOTE_CONNECT = 3, + TASK_REMOTE_DISCONNECT = 4, + TASK_SESSION_LOCK = 7, + TASK_SESSION_UNLOCK = 8 + } + + public enum TASK_STATE + { + TASK_STATE_UNKNOWN, + TASK_STATE_DISABLED, + TASK_STATE_QUEUED, + TASK_STATE_READY, + TASK_STATE_RUNNING + } + + public enum TASK_TRIGGER_TYPE2 + { + TASK_TRIGGER_BOOT = 8, + TASK_TRIGGER_DAILY = 2, + TASK_TRIGGER_EVENT = 0, + TASK_TRIGGER_IDLE = 6, + TASK_TRIGGER_LOGON = 9, + TASK_TRIGGER_MONTHLY = 4, + TASK_TRIGGER_MONTHLYDOW = 5, + TASK_TRIGGER_REGISTRATION = 7, + TASK_TRIGGER_SESSION_STATE_CHANGE = 11, + TASK_TRIGGER_TIME = 1, + TASK_TRIGGER_WEEKLY = 3 + } + + [ComImport, TypeLibType((short)0x10c0), Guid("BAE54997-48B1-4CBE-9965-D6BE263EBEA4")] + public interface IAction + { + [DispId(1)] + string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("02820E19-7B98-4ED2-B2E8-FDCCCEFF619B")] + public interface IActionCollection : IEnumerable + { + [DispId(1)] + int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + IAction this[int index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)] + new IEnumerator GetEnumerator(); + + [DispId(2)] + string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] + IAction Create([In] TASK_ACTION_TYPE Type); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] + void Remove([In, MarshalAs(UnmanagedType.Struct)] object index); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] + void Clear(); + + [DispId(6)] + string Context { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + } + + [ComImport, Guid("2A9C35DA-D357-41F4-BBC1-207AC1B1F3CB"), TypeLibType((short)0x10c0)] + public interface IBootTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(20)] + string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("6D2FD252-75C5-4F66-90BA-2A7D8CC3039F")] + public interface IComHandlerAction : IAction + { + [DispId(1)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + + [DispId(10)] + string ClassId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; } + + [DispId(11)] + string Data { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("126C5CD8-B288-41D5-8DBF-E491446ADC5C")] + public interface IDailyTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(0x19)] + short DaysInterval { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; } + + [DispId(20)] + string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("10F62C64-7E16-4314-A0C2-0C3683F99D40")] + public interface IEmailAction : IAction + { + [DispId(1)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + + [DispId(10)] + string Server { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; } + + [DispId(11)] + string Subject { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + + [DispId(12)] + string To { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; } + + [DispId(13)] + string Cc { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] set; } + + [DispId(14)] + string Bcc { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] set; } + + [DispId(15)] + string ReplyTo { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] set; } + + [DispId(0x10)] + string From { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] set; } + + [DispId(0x11)] + ITaskNamedValueCollection HeaderFields { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] set; } + + [DispId(0x12)] + string Body { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] set; } + + [DispId(0x13)] + Array Attachments { [return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] get; [param: In, MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_VARIANT)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("D45B0167-9653-4EEF-B94F-0732CA7AF251")] + public interface IEventTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(20)] + string Subscription { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + + [DispId(0x15)] + string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; } + + [DispId(0x16)] + ITaskNamedValueCollection ValueQueries { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] set; } + } + + [ComImport, Guid("4C3D624D-FD6B-49A3-B9B7-09CB3CD3F047"), TypeLibType((short)0x10c0)] + public interface IExecAction : IAction + { + [DispId(1)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + + [DispId(10)] + string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; } + + [DispId(11)] + string Arguments { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + + [DispId(12)] + string WorkingDirectory { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; } + } + + [ComImport, Guid("84594461-0053-4342-A8FD-088FABF11F32"), TypeLibType((short)0x10c0)] + public interface IIdleSettings + { + [DispId(1)] + string IdleDuration { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + string WaitTimeout { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + bool StopOnIdleEnd { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + bool RestartOnIdle { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + } + + [ComImport, Guid("D537D2B0-9FB3-4D34-9739-1FF5CE7B1EF3"), TypeLibType((short)0x10c0)] + public interface IIdleTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + } + + [ComImport, Guid("72DADE38-FAE4-4B3E-BAF4-5D009AF02B1C"), TypeLibType((short)0x10c0)] + public interface ILogonTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(20)] + string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + + [DispId(0x15)] + string UserId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; } + } + + [ComImport, Guid("77D025A3-90FA-43AA-B52E-CDA5499B946A"), TypeLibType((short)0x10c0)] + public interface IMonthlyDOWTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(0x19)] + short DaysOfWeek { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; } + + [DispId(0x1a)] + short WeeksOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] set; } + + [DispId(0x1b)] + short MonthsOfYear { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] set; } + + [DispId(0x1c)] + bool RunOnLastWeekOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1c)] set; } + + [DispId(20)] + string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, Guid("97C45EF1-6B02-4A1A-9C0E-1EBFBA1500AC"), TypeLibType((short)0x10c0)] + public interface IMonthlyTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(0x19)] + int DaysOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; } + + [DispId(0x1a)] + short MonthsOfYear { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] set; } + + [DispId(0x1b)] + bool RunOnLastDayOfMonth { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1b)] set; } + + [DispId(20)] + string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, Guid("9F7DEA84-C30B-4245-80B6-00E9F646F1B4"), TypeLibType((short)0x10c0)] + public interface INetworkSettings + { + [DispId(1)] + string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + } + + [ComImport, Guid("D98D51E5-C9B4-496A-A9C1-18980261CF0F"), TypeLibType((short)0x10c0)] + public interface IPrincipal + { + [DispId(1)] + string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + string DisplayName { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + string UserId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + TASK_LOGON_TYPE LogonType { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + string GroupId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + TASK_RUNLEVEL RunLevel { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + } + + [ComImport, DefaultMember("Path"), Guid("9C86F320-DEE3-4DD1-B972-A303F26B061E"), TypeLibType((short)0x10c0), ComConversionLoss] + public interface IRegisteredTask + { + [DispId(1)] + string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [DispId(2)] + TASK_STATE State { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + + [DispId(3)] + bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] + IRunningTask Run([In, MarshalAs(UnmanagedType.Struct)] object parameters); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] + IRunningTask RunEx([In, MarshalAs(UnmanagedType.Struct)] object parameters, [In] int flags, [In] int sessionID, [In, MarshalAs(UnmanagedType.BStr)] string user); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] + IRunningTaskCollection GetInstances([In] int flags); + + [DispId(8)] + DateTime LastRunTime { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; } + + [DispId(9)] + int LastTaskResult { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] get; } + + [DispId(11)] + int NumberOfMissedRuns { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; } + + [DispId(12)] + DateTime NextRunTime { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; } + + [DispId(13)] + ITaskDefinition Definition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; } + + [DispId(14)] + string Xml { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; } + + [return: MarshalAs(UnmanagedType.BStr)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] + string GetSecurityDescriptor([In] int securityInformation); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] + void SetSecurityDescriptor([In, MarshalAs(UnmanagedType.BStr)] string sddl, [In] int flags); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] + void Stop([In] int flags); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), TypeLibFunc((short)0x41), DispId(0x60020011)] + void GetRunTimes([In] ref SYSTEMTIME pstStart, [In] ref SYSTEMTIME pstEnd, [In, Out] ref uint pCount, [Out] IntPtr pRunTimes); + } + + [ComImport, TypeLibType((short)0x10c0), Guid("86627EB4-42A7-41E4-A4D9-AC33A72F2D52")] + public interface IRegisteredTaskCollection : IEnumerable + { + [DispId(0x60020000)] + int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x60020000)] get; } + + [DispId(0)] + IRegisteredTask this[object index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)] + new IEnumerator GetEnumerator(); + } + + [ComImport, Guid("416D8B73-CB41-4EA1-805C-9BE9A5AC4A74"), TypeLibType((short)0x10c0)] + public interface IRegistrationInfo + { + [DispId(1)] + string Description { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + string Author { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(4)] + string Version { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + string Date { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + string Documentation { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(9)] + string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] set; } + + [DispId(10)] + string URI { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; } + + [DispId(11)] + object SecurityDescriptor { [return: MarshalAs(UnmanagedType.Struct)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.Struct)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + + [DispId(12)] + string Source { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; } + } + + [ComImport, Guid("4C8FEC3A-C218-4E0C-B23D-629024DB91A2"), TypeLibType((short)0x10c0)] + public interface IRegistrationTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(20)] + string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("7FB9ACF1-26BE-400E-85B5-294B9C75DFD6")] + public interface IRepetitionPattern + { + [DispId(1)] + string Interval { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + string Duration { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + bool StopAtDurationEnd { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + } + + [ComImport, Guid("653758FB-7B9A-4F1E-A471-BEEB8E9B834E"), TypeLibType((short)0x10c0), DefaultMember("InstanceGuid")] + public interface IRunningTask + { + [DispId(1)] + string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + string InstanceGuid { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [DispId(2)] + string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + + [DispId(3)] + TASK_STATE State { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; } + + [DispId(4)] + string CurrentAction { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; } + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] + void Stop(); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] + void Refresh(); + + [DispId(7)] + uint EnginePID { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; } + } + + [ComImport, Guid("6A67614B-6828-4FEC-AA54-6D52E8F1F2DB"), TypeLibType((short)0x10c0)] + public interface IRunningTaskCollection : IEnumerable + { + [DispId(1)] + int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + IRunningTask this[object index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)] + new IEnumerator GetEnumerator(); + } + + [ComImport, Guid("754DA71B-4385-4475-9DD9-598294FA3641"), TypeLibType((short)0x10c0)] + public interface ISessionStateChangeTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(20)] + string Delay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + + [DispId(0x15)] + string UserId { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; } + + [DispId(0x16)] + TASK_SESSION_STATE_CHANGE_TYPE StateChange { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("505E9E68-AF89-46B8-A30F-56162A83D537")] + public interface IShowMessageAction : IAction + { + [DispId(1)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + new TASK_ACTION_TYPE Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; } + + [DispId(10)] + string Title { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; } + + [DispId(11)] + string MessageBody { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("F5BC8FC5-536D-4F77-B852-FBC1356FDEB6")] + public interface ITaskDefinition + { + [DispId(1)] + IRegistrationInfo RegistrationInfo { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + + [DispId(2)] + ITriggerCollection Triggers { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(7)] + ITaskSettings Settings { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(11)] + string Data { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + + [DispId(12)] + IPrincipal Principal { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; } + + [DispId(13)] + IActionCollection Actions { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] set; } + + [DispId(14)] + string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] set; } + } + + [ComImport, DefaultMember("Path"), Guid("8CFAC062-A080-4C15-9A88-AA7C2AF80DFC"), TypeLibType((short)0x10c0)] + public interface ITaskFolder + { + [DispId(1)] + string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + string Path { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] + ITaskFolder GetFolder([MarshalAs(UnmanagedType.BStr)] string Path); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] + ITaskFolderCollection GetFolders([In] int flags); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] + ITaskFolder CreateFolder([In, MarshalAs(UnmanagedType.BStr)] string subFolderName, [In, Optional, MarshalAs(UnmanagedType.Struct)] object sddl); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] + void DeleteFolder([MarshalAs(UnmanagedType.BStr)] string subFolderName, [In] int flags); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] + IRegisteredTask GetTask([In, MarshalAs(UnmanagedType.BStr)] string Path); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] + IRegisteredTaskCollection GetTasks([In] int flags); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] + void DeleteTask([In, MarshalAs(UnmanagedType.BStr)] string Name, [In] int flags); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] + IRegisteredTask RegisterTask([In, MarshalAs(UnmanagedType.BStr)] string Path, [In, MarshalAs(UnmanagedType.BStr)] string XmlText, [In] int flags, [In, MarshalAs(UnmanagedType.Struct)] object UserId, [In, MarshalAs(UnmanagedType.Struct)] object password, [In] TASK_LOGON_TYPE LogonType, [In, Optional, MarshalAs(UnmanagedType.Struct)] object sddl); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] + IRegisteredTask RegisterTaskDefinition([In, MarshalAs(UnmanagedType.BStr)] string Path, [In, MarshalAs(UnmanagedType.Interface)] ITaskDefinition pDefinition, [In] int flags, [In, MarshalAs(UnmanagedType.Struct)] object UserId, [In, MarshalAs(UnmanagedType.Struct)] object password, [In] TASK_LOGON_TYPE LogonType, [In, Optional, MarshalAs(UnmanagedType.Struct)] object sddl); + + [return: MarshalAs(UnmanagedType.BStr)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] + string GetSecurityDescriptor(int securityInformation); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] + void SetSecurityDescriptor([In, MarshalAs(UnmanagedType.BStr)] string sddl, [In] int flags); + } + + [ComImport, TypeLibType((short)0x10c0), Guid("79184A66-8664-423F-97F1-637356A5D812")] + public interface ITaskFolderCollection : IEnumerable + { + [DispId(0x60020000)] + int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x60020000)] get; } + + [DispId(0)] + ITaskFolder this[object index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)] + new IEnumerator GetEnumerator(); + } + + [ComImport, Guid("839D7762-5121-4009-9234-4F0D19394F04"), InterfaceType((short)1)] + public interface ITaskHandler + { + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void Start([In, MarshalAs(UnmanagedType.IUnknown)] object pHandlerServices, [In, MarshalAs(UnmanagedType.BStr)] string Data); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void Stop([MarshalAs(UnmanagedType.Error)] out int pRetCode); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void Pause(); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void Resume(); + } + + [ComImport, Guid("EAEC7A8F-27A0-4DDC-8675-14726A01A38A"), InterfaceType((short)1)] + public interface ITaskHandlerStatus + { + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void UpdateStatus([In] short percentComplete, [In, MarshalAs(UnmanagedType.BStr)] string statusMessage); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void TaskCompleted([In, MarshalAs(UnmanagedType.Error)] int taskErrCode); + } + + [ComImport, Guid("B4EF826B-63C3-46E4-A504-EF69E4F7EA4D"), TypeLibType((short)0x10c0)] + public interface ITaskNamedValueCollection : IEnumerable + { + [DispId(1)] + int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + ITaskNamedValuePair this[int index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)] + new IEnumerator GetEnumerator(); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] + ITaskNamedValuePair Create([In, MarshalAs(UnmanagedType.BStr)] string Name, [In, MarshalAs(UnmanagedType.BStr)] string Value); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] + void Remove([In] int index); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] + void Clear(); + } + + [ComImport, TypeLibType((short)0x10c0), DefaultMember("Name"), Guid("39038068-2B46-4AFD-8662-7BB6F868D221")] + public interface ITaskNamedValuePair + { + [DispId(0)] + string Name { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] set; } + + [DispId(1)] + string Value { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), DefaultMember("TargetServer"), Guid("2FABA4C7-4DA9-4013-9697-20CC3FD40F85")] + public interface ITaskService + { + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] + ITaskFolder GetFolder([In, MarshalAs(UnmanagedType.BStr)] string Path); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] + IRunningTaskCollection GetRunningTasks([In] int flags); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] + ITaskDefinition NewTask([In] uint flags); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] + void Connect([In, Optional, MarshalAs(UnmanagedType.Struct)] object serverName, [In, Optional, MarshalAs(UnmanagedType.Struct)] object user, [In, Optional, MarshalAs(UnmanagedType.Struct)] object domain, [In, Optional, MarshalAs(UnmanagedType.Struct)] object password); + + [DispId(5)] + bool Connected { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; } + + [DispId(0)] + string TargetServer { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [DispId(6)] + string ConnectedUser { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; } + + [DispId(7)] + string ConnectedDomain { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; } + + [DispId(8)] + uint HighestVersion { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("8FD4711D-2D02-4C8C-87E3-EFF699DE127E")] + public interface ITaskSettings + { + [DispId(3)] + bool AllowDemandStart { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + string RestartInterval { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + int RestartCount { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + TASK_INSTANCES_POLICY MultipleInstances { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + bool StopIfGoingOnBatteries { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(8)] + bool DisallowStartIfOnBatteries { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] set; } + + [DispId(9)] + bool AllowHardTerminate { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(9)] set; } + + [DispId(10)] + bool StartWhenAvailable { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(10)] set; } + + [DispId(11)] + string XmlText { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(11)] set; } + + [DispId(12)] + bool RunOnlyIfNetworkAvailable { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(12)] set; } + + [DispId(13)] + string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(13)] set; } + + [DispId(14)] + bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(14)] set; } + + [DispId(15)] + string DeleteExpiredTaskAfter { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(15)] set; } + + [DispId(0x10)] + int Priority { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x10)] set; } + + [DispId(0x11)] + TASK_COMPATIBILITY Compatibility { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x11)] set; } + + [DispId(0x12)] + bool Hidden { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x12)] set; } + + [DispId(0x13)] + IIdleSettings IdleSettings { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x13)] set; } + + [DispId(20)] + bool RunOnlyIfIdle { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + + [DispId(0x15)] + bool WakeToRun { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x15)] set; } + + [DispId(0x16)] + INetworkSettings NetworkSettings { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x16)] set; } + } + + [ComImport, Guid("2C05C3F0-6EED-4C05-A15F-ED7D7A98A369"), TypeLibType((short)0x10c0)] + public interface ITaskSettings2 + { + [DispId(30)] + bool DisallowStartOnRemoteAppSession { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(30)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(30)] set; } + + [DispId(0x1f)] + bool UseUnifiedSchedulingEngine { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1f)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1f)] set; } + } + + [ComImport, Guid("3E4C9351-D966-4B8B-BB87-CEBA68BB0107"), InterfaceType((short)1)] + public interface ITaskVariables + { + [return: MarshalAs(UnmanagedType.BStr)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + string GetInput(); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + void SetOutput([In, MarshalAs(UnmanagedType.BStr)] string input); + + [return: MarshalAs(UnmanagedType.BStr)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + string GetContext(); + } + + [ComImport, Guid("B45747E0-EBA7-4276-9F29-85C5BB300006"), TypeLibType((short)0x10c0)] + public interface ITimeTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(20)] + string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("09941815-EA89-4B5B-89E0-2A773801FAC3")] + public interface ITrigger + { + [DispId(1)] + TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + } + + [ComImport, TypeLibType((short)0x10c0), Guid("85DF5081-1B24-4F32-878A-D9D14DF4CB77")] + public interface ITriggerCollection : IEnumerable + { + [DispId(1)] + int Count { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(0)] + ITrigger this[int index] { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(-4)] + new IEnumerator GetEnumerator(); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] + ITrigger Create([In] TASK_TRIGGER_TYPE2 Type); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] + void Remove([In, MarshalAs(UnmanagedType.Struct)] object index); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] + void Clear(); + } + + [ComImport, Guid("5038FC98-82FF-436D-8728-A512A57C9DC1"), TypeLibType((short)0x10c0)] + public interface IWeeklyTrigger : ITrigger + { + [DispId(1)] + new TASK_TRIGGER_TYPE2 Type { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] get; } + + [DispId(2)] + new string Id { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] set; } + + [DispId(3)] + new IRepetitionPattern Repetition { [return: MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] get; [param: In, MarshalAs(UnmanagedType.Interface)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] set; } + + [DispId(4)] + new string ExecutionTimeLimit { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] set; } + + [DispId(5)] + new string StartBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] set; } + + [DispId(6)] + new string EndBoundary { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] set; } + + [DispId(7)] + new bool Enabled { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] set; } + + [DispId(0x19)] + short DaysOfWeek { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x19)] set; } + + [DispId(0x1a)] + short WeeksInterval { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] get; [param: In] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0x1a)] set; } + + [DispId(20)] + string RandomDelay { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] get; [param: In, MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(20)] set; } + } + + [ComImport, Guid("839D7762-5121-4009-9234-4F0D19394F04"), CoClass(typeof(TaskHandlerPSClass))] + public interface TaskHandlerPS : ITaskHandler + { + } + + [ComImport, TypeLibType((short)2), ClassInterface((short)0), Guid("F2A69DB7-DA2C-4352-9066-86FEE6DACAC9")] + public class TaskHandlerPSClass : ITaskHandler, TaskHandlerPS + { + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void Pause(); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void Resume(); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void Start([In, MarshalAs(UnmanagedType.IUnknown)] object pHandlerServices, [In, MarshalAs(UnmanagedType.BStr)] string Data); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void Stop([MarshalAs(UnmanagedType.Error)] out int pRetCode); + } + + [ComImport, Guid("EAEC7A8F-27A0-4DDC-8675-14726A01A38A"), CoClass(typeof(TaskHandlerStatusPSClass))] + public interface TaskHandlerStatusPS : ITaskHandlerStatus + { + } + + [ComImport, ClassInterface((short)0), Guid("9F15266D-D7BA-48F0-93C1-E6895F6FE5AC"), TypeLibType((short)2)] + public class TaskHandlerStatusPSClass : ITaskHandlerStatus, TaskHandlerStatusPS, ITaskVariables + { + [return: MarshalAs(UnmanagedType.BStr)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern string GetContext(); + + [return: MarshalAs(UnmanagedType.BStr)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern string GetInput(); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void SetOutput([In, MarshalAs(UnmanagedType.BStr)] string input); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void TaskCompleted([In, MarshalAs(UnmanagedType.Error)] int taskErrCode); + + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] + public virtual extern void UpdateStatus([In] short percentComplete, [In, MarshalAs(UnmanagedType.BStr)] string statusMessage); + } + + [ComImport, CoClass(typeof(TaskSchedulerClass)), Guid("2FABA4C7-4DA9-4013-9697-20CC3FD40F85")] + public interface TaskScheduler : ITaskService + { + } + + [ComImport, ClassInterface((short)0), DefaultMember("TargetServer"), Guid("0F87369F-A4E5-4CFC-BD3E-73E6154572DD"), TypeLibType((short)2)] + public class TaskSchedulerClass : ITaskService, TaskScheduler + { + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(4)] + public virtual extern void Connect([In, Optional, MarshalAs(UnmanagedType.Struct)] object serverName, [In, Optional, MarshalAs(UnmanagedType.Struct)] object user, [In, Optional, MarshalAs(UnmanagedType.Struct)] object domain, [In, Optional, MarshalAs(UnmanagedType.Struct)] object password); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(1)] + public virtual extern ITaskFolder GetFolder([In, MarshalAs(UnmanagedType.BStr)] string Path); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(2)] + public virtual extern IRunningTaskCollection GetRunningTasks([In] int flags); + + [return: MarshalAs(UnmanagedType.Interface)] + [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(3)] + public virtual extern ITaskDefinition NewTask([In] uint flags); + + [DispId(5)] + public virtual extern bool Connected { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(5)] get; } + + [DispId(7)] + public virtual extern string ConnectedDomain { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(7)] get; } + + [DispId(6)] + public virtual extern string ConnectedUser { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(6)] get; } + + [DispId(8)] + public virtual extern uint HighestVersion { [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(8)] get; } + + [DispId(0)] + public virtual extern string TargetServer { [return: MarshalAs(UnmanagedType.BStr)] [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime), DispId(0)] get; } + } +} \ No newline at end of file