Skip to content

Commit

Permalink
events completed (xpath skipped)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Volkov committed Nov 28, 2020
1 parent 13317e9 commit f9248a5
Show file tree
Hide file tree
Showing 14 changed files with 368 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected override QuadrupleListDataItem[] GetOutputData(DataItemBase[] inputDat
{
try
{
// System.Diagnostics.Eventing.Reader.NativeWrapper.EvtNextChannelPath();
List<Quadruple> rawData = new List<Quadruple>();
foreach (string logName in EventLogSession.GlobalSession.GetLogNames())
rawData.Add(new Quadruple { I1 = logName });
Expand Down
4 changes: 2 additions & 2 deletions Maximus.ControlCenter.Tasks.Module/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.39")]
[assembly: AssemblyFileVersion("1.0.0.39")]
[assembly: AssemblyVersion("1.0.0.40")]
[assembly: AssemblyFileVersion("1.0.0.40")]
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ internal static Quadruple SerializeRegValue(string paramName, object value, Regi
case RegistryValueKind.QWord: return new Quadruple { I1 = pn, I2 = "REG_QWORD", I3 = unchecked((ulong)((long)value)).ToString() };
case RegistryValueKind.String: return new Quadruple { I1 = pn, I2 = "REG_SZ", I3 = (string)value };
case RegistryValueKind.ExpandString: return new Quadruple { I1 = pn, I2 = "REG_EXPAND_SZ", I3 = ExpandStrings ? Environment.ExpandEnvironmentVariables((string)value) : (string)value };
case RegistryValueKind.Binary: return new Quadruple { I1 = pn, I2 = "REG_BINARY.", I3 = BitConverter.ToString((byte[])value).Replace('-', ' ') };
case RegistryValueKind.Binary: return new Quadruple { I1 = pn, I2 = "REG_BINARY", I3 = BitConverter.ToString((byte[])value).Replace('-', ' ') };
case RegistryValueKind.MultiString:
string mliners = "";
string[] lines = (string[])value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected override QuadrupleListDataItem[] GetOutputData(DataItemBase[] inputDat
// KeyPath, OldName, NewValue, ValueType
case WriteRegistryElementAction.SetValue:
if (string.IsNullOrWhiteSpace(NewValue) || string.IsNullOrWhiteSpace(ValueType))
return CreateErrorousOutput("Missing parameters. Rename Key operation requires KeyPath, OldName, NewValue, and ValueType. Although, OldName can be empty to indicate the default value.");
return CreateErrorousOutput("Missing parameters. Set Value operation requires KeyPath, OldName, NewValue, and ValueType. Although, OldName can be empty to indicate the default value.");
if (string.IsNullOrEmpty(OldName) && ValueType != "REG_SZ")
return CreateErrorousOutput("Invalid parameters. (Default) value can only be of REG_SZ type.");
RegistryValueKind dataType = GetRegistryValueKind(ValueType);
Expand Down
135 changes: 69 additions & 66 deletions Maximus.ControlCenter.UI.Control/Dialogs/EventXPathQuery.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 79 additions & 35 deletions Maximus.ControlCenter.UI.Control/Dialogs/RegistryEdit.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f9248a5

Please sign in to comment.