diff --git a/Server/Forms/FrmRegistryEditor.Designer.cs b/Server/Forms/FrmRegistryEditor.Designer.cs
index efa0db05..083bd756 100644
--- a/Server/Forms/FrmRegistryEditor.Designer.cs
+++ b/Server/Forms/FrmRegistryEditor.Designer.cs
@@ -33,20 +33,20 @@
this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
this.splitContainer = new System.Windows.Forms.SplitContainer();
this.tvRegistryDirectory = new System.Windows.Forms.TreeView();
- this.statusStrip = new System.Windows.Forms.StatusStrip();
- this.selectedStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.imageRegistryDirectoryList = new System.Windows.Forms.ImageList(this.components);
- this.imageRegistryKeyTypeList = new System.Windows.Forms.ImageList(this.components);
- this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
- this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.keyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.lstRegistryKeys = new xServer.Controls.AeroListView();
this.hName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.hType = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.hValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
+ this.statusStrip = new System.Windows.Forms.StatusStrip();
+ this.selectedStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
+ this.imageRegistryKeyTypeList = new System.Windows.Forms.ImageList(this.components);
+ this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
+ this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.keyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
+ this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.tableLayoutPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer)).BeginInit();
this.splitContainer.Panel1.SuspendLayout();
@@ -103,79 +103,12 @@
this.tvRegistryDirectory.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvRegistryDirectory_BeforeExpand);
this.tvRegistryDirectory.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.tvRegistryDirectory_NodeMouseClick);
//
- // statusStrip
- //
- this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.selectedStripStatusLabel});
- this.statusStrip.Location = new System.Drawing.Point(0, 702);
- this.statusStrip.Name = "statusStrip";
- this.statusStrip.Size = new System.Drawing.Size(1239, 22);
- this.statusStrip.TabIndex = 1;
- this.statusStrip.Text = "statusStrip";
- //
- // selectedStripStatusLabel
- //
- this.selectedStripStatusLabel.Name = "selectedStripStatusLabel";
- this.selectedStripStatusLabel.Size = new System.Drawing.Size(0, 17);
- //
// imageRegistryDirectoryList
//
this.imageRegistryDirectoryList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageRegistryDirectoryList.ImageStream")));
this.imageRegistryDirectoryList.TransparentColor = System.Drawing.Color.Transparent;
this.imageRegistryDirectoryList.Images.SetKeyName(0, "folder.png");
//
- // imageRegistryKeyTypeList
- //
- this.imageRegistryKeyTypeList.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
- this.imageRegistryKeyTypeList.ImageSize = new System.Drawing.Size(16, 16);
- this.imageRegistryKeyTypeList.TransparentColor = System.Drawing.Color.Transparent;
- //
- // contextMenuStrip
- //
- this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.newToolStripMenuItem,
- this.toolStripSeparator1,
- this.deleteToolStripMenuItem,
- this.renameToolStripMenuItem});
- this.contextMenuStrip.Name = "contextMenuStrip";
- this.contextMenuStrip.Size = new System.Drawing.Size(153, 98);
- //
- // newToolStripMenuItem
- //
- this.newToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.keyToolStripMenuItem});
- this.newToolStripMenuItem.Name = "newToolStripMenuItem";
- this.newToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.newToolStripMenuItem.Text = "New";
- //
- // deleteToolStripMenuItem
- //
- this.deleteToolStripMenuItem.Enabled = false;
- this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
- this.deleteToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.deleteToolStripMenuItem.Text = "Delete";
- this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteRegistryKey_Click);
- //
- // renameToolStripMenuItem
- //
- this.renameToolStripMenuItem.Enabled = false;
- this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
- this.renameToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
- this.renameToolStripMenuItem.Text = "Rename";
- this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameRegistryKey_Click);
- //
- // keyToolStripMenuItem
- //
- this.keyToolStripMenuItem.Name = "keyToolStripMenuItem";
- this.keyToolStripMenuItem.Size = new System.Drawing.Size(93, 22);
- this.keyToolStripMenuItem.Text = "Key";
- this.keyToolStripMenuItem.Click += new System.EventHandler(this.createNewRegistryKey_Click);
- //
- // toolStripSeparator1
- //
- this.toolStripSeparator1.Name = "toolStripSeparator1";
- this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6);
- //
// lstRegistryKeys
//
this.lstRegistryKeys.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
@@ -187,6 +120,7 @@
this.lstRegistryKeys.Location = new System.Drawing.Point(0, 0);
this.lstRegistryKeys.Name = "lstRegistryKeys";
this.lstRegistryKeys.Size = new System.Drawing.Size(818, 664);
+ this.lstRegistryKeys.SmallImageList = this.imageRegistryKeyTypeList;
this.lstRegistryKeys.TabIndex = 0;
this.lstRegistryKeys.UseCompatibleStateImageBehavior = false;
this.lstRegistryKeys.View = System.Windows.Forms.View.Details;
@@ -206,6 +140,74 @@
this.hValue.Text = "Value";
this.hValue.Width = 384;
//
+ // statusStrip
+ //
+ this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.selectedStripStatusLabel});
+ this.statusStrip.Location = new System.Drawing.Point(0, 702);
+ this.statusStrip.Name = "statusStrip";
+ this.statusStrip.Size = new System.Drawing.Size(1239, 22);
+ this.statusStrip.TabIndex = 1;
+ this.statusStrip.Text = "statusStrip";
+ //
+ // selectedStripStatusLabel
+ //
+ this.selectedStripStatusLabel.Name = "selectedStripStatusLabel";
+ this.selectedStripStatusLabel.Size = new System.Drawing.Size(0, 17);
+ //
+ // imageRegistryKeyTypeList
+ //
+ this.imageRegistryKeyTypeList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageRegistryKeyTypeList.ImageStream")));
+ this.imageRegistryKeyTypeList.TransparentColor = System.Drawing.Color.Transparent;
+ this.imageRegistryKeyTypeList.Images.SetKeyName(0, "reg_string.png");
+ this.imageRegistryKeyTypeList.Images.SetKeyName(1, "reg_binary.png");
+ //
+ // contextMenuStrip
+ //
+ this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.newToolStripMenuItem,
+ this.toolStripSeparator1,
+ this.deleteToolStripMenuItem,
+ this.renameToolStripMenuItem});
+ this.contextMenuStrip.Name = "contextMenuStrip";
+ this.contextMenuStrip.Size = new System.Drawing.Size(118, 76);
+ //
+ // newToolStripMenuItem
+ //
+ this.newToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+ this.keyToolStripMenuItem});
+ this.newToolStripMenuItem.Name = "newToolStripMenuItem";
+ this.newToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
+ this.newToolStripMenuItem.Text = "New";
+ //
+ // keyToolStripMenuItem
+ //
+ this.keyToolStripMenuItem.Name = "keyToolStripMenuItem";
+ this.keyToolStripMenuItem.Size = new System.Drawing.Size(93, 22);
+ this.keyToolStripMenuItem.Text = "Key";
+ this.keyToolStripMenuItem.Click += new System.EventHandler(this.createNewRegistryKey_Click);
+ //
+ // toolStripSeparator1
+ //
+ this.toolStripSeparator1.Name = "toolStripSeparator1";
+ this.toolStripSeparator1.Size = new System.Drawing.Size(114, 6);
+ //
+ // deleteToolStripMenuItem
+ //
+ this.deleteToolStripMenuItem.Enabled = false;
+ this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
+ this.deleteToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
+ this.deleteToolStripMenuItem.Text = "Delete";
+ this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteRegistryKey_Click);
+ //
+ // renameToolStripMenuItem
+ //
+ this.renameToolStripMenuItem.Enabled = false;
+ this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
+ this.renameToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
+ this.renameToolStripMenuItem.Text = "Rename";
+ this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameRegistryKey_Click);
+ //
// FrmRegistryEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
diff --git a/Server/Forms/FrmRegistryEditor.cs b/Server/Forms/FrmRegistryEditor.cs
index 95bcbe7c..ba3b61e2 100644
--- a/Server/Forms/FrmRegistryEditor.cs
+++ b/Server/Forms/FrmRegistryEditor.cs
@@ -284,6 +284,7 @@ namespace xServer.Forms
{
// To-Do: Use a custom ListViewItem for a better style. (Maybe add the imageList to it?)
RegistryValueLstItem item = new RegistryValueLstItem(value.Name, value.Type, value.Data);
+ item.ImageIndex = GetRegistryValueImgIndex(value.Type);
lstRegistryKeys.Items.Add(item);
}
}
@@ -470,6 +471,24 @@ namespace xServer.Forms
#endregion
+ #region HelpFunctions
+ private int GetRegistryValueImgIndex(string type)
+ {
+ switch (type)
+ {
+ case "REG_MULTI_SZ":
+ case "REG_SZ":
+ case "REG_EXPAND_SZ":
+ return 0;
+ case "REG_BINARY":
+ case "REG_DWORD":
+ case "REG_QWORD":
+ default:
+ return 1;
+ }
+ }
+
+ #endregion
}
}
diff --git a/Server/Forms/FrmRegistryEditor.resx b/Server/Forms/FrmRegistryEditor.resx
index 7d200cef..c2f92e2d 100644
--- a/Server/Forms/FrmRegistryEditor.resx
+++ b/Server/Forms/FrmRegistryEditor.resx
@@ -125,7 +125,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADm
- BwAAAk1TRnQBSQFMAwEBAAHgAQAB4AEAARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
+ BwAAAk1TRnQBSQFMAwEBAAHoAQAB6AEAARABAAEQAQAE/wEJAQAI/wFCAU0BNgEEBgABNgEEAgABKAMA
AUADAAEQAwABAQEAAQgGAAEEGAABgAIAAYADAAKAAQABgAMAAYABAAGAAQACgAIAA8ABAAHAAdwBwAEA
AfABygGmAQABMwUAATMBAAEzAQABMwEAAjMCAAMWAQADHAEAAyIBAAMpAQADVQEAA00BAANCAQADOQEA
AYABfAH/AQACUAH/AQABkwEAAdYBAAH/AewBzAEAAcYB1gHvAQAB1gLnAQABkAGpAa0CAAH/ATMDAAFm
@@ -161,12 +161,60 @@
AQEGAAGAAQEGAAGAAQEGAAGAAQEGAAGAAQEGAAGAAQEGAAL/BgAC/wYAAv8GAAs=
-
- 17, 17
-
323, 17
+
+
+ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3Jtcyw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