Add XML Decompilation Code

This commit is contained in:
AtelierWindows 2019-04-29 06:32:20 +12:00
parent a11404f3cc
commit 09bc4abdb3
21 changed files with 264 additions and 747 deletions

View File

@ -1,14 +1,18 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Text;
using System.Xml;
namespace AppInfo
{
class Types
{
public static int TYPE_TEXT = 0;
public static int TYPE_PNG = 1;
public static int TYPE_STRING = 3;
public static int TYPE_FLOAT = 2;
public static int TYPE_INT = 1;
public static int TYPE_FILE = 8;
}
class Tools
@ -20,6 +24,19 @@ namespace AppInfo
ms.Seek(0, SeekOrigin.Begin);
return ms;
}
public static bool IsImage(byte[] Bytes)
{
try
{
GetBitmap(Bytes);
}
catch(Exception)
{
return false;
}
return true;
}
public static Bitmap GetBitmap(byte[] BitmapBytes)
{
@ -28,107 +45,143 @@ namespace AppInfo
ms.Dispose();
return bmp;
}
public static int GetType(byte[] FileData)
public static String ReadStringAt(Stream ms, int location)
{
try
long ogPos = ms.Position;
ms.Seek(location, SeekOrigin.Begin);
String str = ReadString(ms);
ms.Seek(ogPos, SeekOrigin.Begin);
return str;
}
public static int ReadIntAt(Stream ms, int location)
{
BinaryReader BinReader = new BinaryReader(ms);
long ogPos = ms.Position;
ms.Seek(location, SeekOrigin.Begin);
int i = BinReader.ReadInt32();
ms.Seek(ogPos, SeekOrigin.Begin);
return i;
}
public static int ReadInt(Stream ms)
{
BinaryReader BinReader = new BinaryReader(ms);
int i = BinReader.ReadInt32();
return i;
}
public static String ReadString(Stream ms)
{
int i = 0xFF;
MemoryStream StringStream = new MemoryStream();
do
{
MemoryStream ms = ByteToStream(FileData);
Bitmap bmp = new Bitmap(ms);
bmp.Dispose();
ms.Dispose();
return Types.TYPE_PNG;
}
catch(Exception)
{
return Types.TYPE_TEXT;
i = ms.ReadByte();
if (i == 0)
break;
StringStream.WriteByte((byte)i);
}
while (true);
byte[] StringData = StringStream.ToArray();
String str = Encoding.UTF8.GetString(StringData);
return str;
}
}
class Parser
{
private static byte[] _getImageOfSize(int width, int height)
{
int max = GetFileCount();
for (int i = 0; i <= max; i++)
{
byte[] FileData = GetFile(i);
if (Tools.GetType(FileData) == Types.TYPE_PNG)
{
Bitmap bmp = Tools.GetBitmap(FileData);
if (bmp.Width == width && bmp.Height == height)
{
return FileData;
}
}
}
throw new FileNotFoundException();
}
private static bool _checkMagicNumber()
{
if (StringRepresentation.StartsWith("PSMA"))
String Magic = Tools.ReadStringAt(InfoFile, 0x00);
if (Magic.StartsWith("PSMA"))
{
return true;
}
else if(Magic.StartsWith("RCOF"))
{
Console.WriteLine("WARNING: .RCO files probably wont work!!\nThis tool was made for PSM's \"app.info\" files.");
return true;
}
else
{
return false;
}
}
private static int _readInt32At(int offset)
{
InfoFile.Seek(offset, SeekOrigin.Begin);
BinaryReader BinReader = new BinaryReader(InfoFile);
int int32 = BinReader.ReadInt32();
return int32;
}
static FileStream InfoFile;
static String StringRepresentation;
static MemoryStream StringTable;
static MemoryStream TreeTable;
static MemoryStream FileTable;
static BinaryReader BinaryTree;
static XmlWriter XMLFile;
public static void Init(string Path)
public static void Init(string Path, bool CheckMagic = true)
{
StringRepresentation = Encoding.ASCII.GetString(File.ReadAllBytes(Path));
InfoFile = File.Open(Path, FileMode.Open, FileAccess.Read);
if(!_checkMagicNumber())
if(CheckMagic)
{
throw new Exception("Incorrect magic number.");
if (!_checkMagicNumber())
{
throw new Exception("Incorrect magic number.");
}
}
StringTable = Tools.ByteToStream(GetStringTable());
TreeTable = Tools.ByteToStream(GetTreeTable());
FileTable = Tools.ByteToStream(GetFileTable());
BinaryTree = new BinaryReader(TreeTable);
return;
}
public static void Term()
{
InfoFile.Close();
StringTable.Close();
TreeTable.Close();
FileTable.Close();
BinaryTree.Dispose();
}
public static int GetTableOffset()
{
return _readInt32At(0x8);
return Tools.ReadIntAt(InfoFile,0x8);
}
public static int GetTableSize()
{
return _readInt32At(0xC);
return Tools.ReadIntAt(InfoFile, 0xC);
}
public static int GetFileTableOffset()
{
return _readInt32At(0x48);
return Tools.ReadIntAt(InfoFile, 0x48);
}
public static int GetFileTableSize()
{
return _readInt32At(0x4C);
return Tools.ReadIntAt(InfoFile, 0x4C);
}
public static int GetStringTableOffset()
{
return _readInt32At(0x20);
return Tools.ReadIntAt(InfoFile, 0x20);
}
public static int GetStringTableSize()
{
return _readInt32At(0x24);
return Tools.ReadIntAt(InfoFile, 0x24);
}
public static byte[] GetStringTable()
@ -141,7 +194,7 @@ namespace AppInfo
return StringTable;
}
public static byte[] GetTable()
public static byte[] GetTreeTable()
{
int TableOffset = GetTableOffset();
int TableSize = GetTableSize();
@ -161,139 +214,131 @@ namespace AppInfo
return FileTable;
}
public static int GetFileCount()
public static void DecompileCXML(String CXMLFile, bool force = false)
{
int i = 0;
while(true)
Init(CXMLFile,force);
XmlWriterSettings XMLSettings = new XmlWriterSettings();
XMLSettings.Indent = true;
XMLFile = XmlWriter.Create(Path.GetFileNameWithoutExtension(CXMLFile)+".xml", XMLSettings);
XMLFile.WriteStartDocument();
ReadElement();
XMLFile.WriteEndDocument();
XMLFile.Flush();
Term();
}
public static void ReadAttribute()
{
int AttributePtr = BinaryTree.ReadInt32();
int AttributeType = BinaryTree.ReadInt32();
String AttributeName = Tools.ReadStringAt(StringTable, AttributePtr);
object AttributeValue;
Console.WriteLine("AttributeType: " + AttributeType);
if (AttributeType == Types.TYPE_STRING)
{
try
{
GetFile(i);
i++;
}
catch(Exception)
{
return i - 1;
}
int ValuePtr = BinaryTree.ReadInt32();
AttributeValue = Tools.ReadStringAt(StringTable, ValuePtr);
TreeTable.Seek(4, SeekOrigin.Current);
}
}
public static byte[] GetBackground()
{
return _getImageOfSize(854, 480);
}
public static byte[] GetIcon128()
{
return _getImageOfSize(128, 128);
}
public static byte[] GetIcon256()
{
return _getImageOfSize(256, 256);
}
public static byte[] GetIcon512()
{
return _getImageOfSize(512, 512);
}
public static byte[] GetCopyright()
{
int max = GetFileCount();
for (int i = 0; i <= max; i++)
else if(AttributeType == Types.TYPE_FLOAT)
{
byte[] FileData = GetFile(i);
if (Tools.GetType(FileData) == Types.TYPE_TEXT)
{
return FileData;
}
AttributeValue = BinaryTree.ReadSingle();
TreeTable.Seek(4, SeekOrigin.Current);
}
throw new FileNotFoundException();
}
public static String GetProperty(String key)
{
String[] StringTableArray = Encoding.UTF8.GetString(GetStringTable()).Split('\x00');
int index = Array.IndexOf(StringTableArray, key);
return StringTableArray[index + 1];
}
public static byte[] GetFile(int FileIndex)
{
int DataOffset = GetFileTableOffset();
int DataLength = GetFileTableSize();
int TableOffset = GetTableOffset();
//This is a bit of a hack. but i couldnt work out the real format.
int FirstPngSize = (StringRepresentation.IndexOf("IEND") + 8) - DataOffset;
MemoryStream MemStream = Tools.ByteToStream(GetTable());
BinaryReader BinReader = new BinaryReader(MemStream);
while (BinReader.ReadInt32() != FirstPngSize) { };
MemStream.Seek(-8, SeekOrigin.Current);
MemoryStream FileTableStream = Tools.ByteToStream(GetFileTable());
int FileStart = 0;
int FileSize = 0;
for (int i = 0; i <= FileIndex; i += 1)
else if(AttributeType == Types.TYPE_INT)
{
FileStart = BinReader.ReadInt32();
FileSize = BinReader.ReadInt32();
MemStream.Seek(0x8, SeekOrigin.Current);
AttributeValue = BinaryTree.ReadInt32();
TreeTable.Seek(4, SeekOrigin.Current);
}
else if(AttributeType == Types.TYPE_FILE)
{
int FilePtr = BinaryTree.ReadInt32();
int FileSz = BinaryTree.ReadInt32();
if (i != 0 && FileStart == 0)
String FileName = "";
Byte[] FileData = new Byte[FileSz];
FileTable.Seek(FilePtr,SeekOrigin.Begin);
FileTable.Read(FileData, 0, FileSz);
if (Tools.IsImage(FileData))
FileName = AttributeName + ".png";
else
FileName = AttributeName + ".txt";
Console.WriteLine("Writing: " + FileName);
File.WriteAllBytes(FileName, FileData);
AttributeValue = FileName;
}
else
{
Console.WriteLine("ERROR: Unknown Type '"+AttributeType+"' @ " + (TreeTable.Position - 4).ToString());
Environment.Exit(-1);
return;
}
Console.WriteLine(AttributeName + "=" + AttributeValue.ToString());
XMLFile.WriteAttributeString(AttributeName, AttributeValue.ToString());
XMLFile.Flush();
}
public static void ReadElement()
{
int ElementPtr = BinaryTree.ReadInt32();
int NumAttributes = BinaryTree.ReadInt32();
int ParentPtr = BinaryTree.ReadInt32();
int PrevSibling = BinaryTree.ReadInt32();
int NextSibling = BinaryTree.ReadInt32();
int FirstChild = BinaryTree.ReadInt32();
int LastChild = BinaryTree.ReadInt32();
String ElementName = Tools.ReadStringAt(StringTable, ElementPtr);
Console.WriteLine("Creating Element: " + ElementName);
Console.WriteLine("Attribute Count: " + NumAttributes);
Console.WriteLine("ParentPtr: " + ParentPtr);
Console.WriteLine("PrevSibling: " + PrevSibling);
Console.WriteLine("NextSibling: " + NextSibling);
Console.WriteLine("FirstChild: " + FirstChild);
Console.WriteLine("LastChild: " + LastChild);
XMLFile.WriteStartElement(ElementName);
if(NumAttributes > 0)
{
for (int i = 0; i < NumAttributes; i++)
{
MemStream.Seek(-32, SeekOrigin.Current);
FileStart = BinReader.ReadInt32();
FileSize = BinReader.ReadInt32();
FileStart += FileSize;
FileSize = DataLength - FileStart;
if(FileIndex > i)
{
throw new FileNotFoundException();
}
ReadAttribute();
}
}
byte[] FileData = new byte[FileSize];
FileTableStream.Seek(FileStart, SeekOrigin.Begin);
FileTableStream.Read(FileData, 0, FileSize);
if(Tools.GetType(FileData) == Types.TYPE_TEXT)
if (FirstChild != -1)
{
String CopyrightData = Encoding.UTF8.GetString(FileData);
CopyrightData = CopyrightData.Replace("\x00", "");
FileData = Encoding.UTF8.GetBytes(CopyrightData);
TreeTable.Seek(FirstChild, SeekOrigin.Begin);
ReadElement();
}
return FileData;
}
public static String[] GetInfoTable()
{
BinaryReader BinReader = new BinaryReader(InfoFile);
InfoFile.Seek(0x20, SeekOrigin.Begin);
int InfoTableOffset = BinReader.ReadInt32();
int InfoLength = BinReader.ReadInt32();
XMLFile.WriteEndElement();
XMLFile.Flush();
InfoFile.Seek(InfoTableOffset, SeekOrigin.Begin);
byte[] InfoTable = new byte[InfoLength];
InfoFile.Read(InfoTable, 0, InfoLength);
String Files = Encoding.UTF8.GetString(InfoTable);
String[] FileList = Files.Split('\x00');
foreach(String file in FileList)
if (NextSibling != -1)
{
Console.WriteLine(file);
TreeTable.Seek(NextSibling, SeekOrigin.Begin);
ReadElement();
}
return FileList;
}
}

View File

@ -1,10 +1,6 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace AppInfoCli
{
@ -12,29 +8,65 @@ namespace AppInfoCli
{
static void Main(string[] args)
{
String path = "";
if(args.Length == 0)
bool Check = true;
if (args.Length == 0)
{
Console.Write(".Info Path: ");
path = Console.ReadLine();
Console.WriteLine("-- app.info/CXML Decompiler --");
Console.WriteLine("I like to see girls die :3");
Console.WriteLine("Required Arguments:");
Console.WriteLine("\t<file>");
Console.WriteLine("Optional Arguments:");
Console.WriteLine("\t-f --force Dont check magic number.");
Console.WriteLine("\t-s --dump-strings Dump string table.");
Console.WriteLine("\t-t --dump-tree Dump tree table.");
Console.WriteLine("\t-ft --dump-file Dump file table.");
Console.WriteLine("\t-d --decompile Decompile CXML.");
Console.WriteLine("Example: " + Path.GetFileName(Assembly.GetEntryAssembly().Location) + " app.info -f -s -t -f -d");
Console.WriteLine("Default functonality is to Decompile,\ntThis is canceled if any other arguments passed.");
return;
}
else
String ArgsFull = String.Join(" ", args);
String path = args[0];
if (ArgsFull.Contains("-f") || ArgsFull.Contains("--force"))
{
path = args[0];
Check = false;
}
AppInfo.Parser.Init(path);
File.WriteAllBytes("Background.png", AppInfo.Parser.GetBackground());
File.WriteAllBytes("Icon128.png", AppInfo.Parser.GetIcon128());
File.WriteAllBytes("Icon256.png", AppInfo.Parser.GetIcon256());
File.WriteAllBytes("Icon512.png", AppInfo.Parser.GetIcon512());
File.WriteAllBytes("Copyright.txt", AppInfo.Parser.GetCopyright());
if (ArgsFull.Contains("-s") || ArgsFull.Contains("--dump-strings"))
{
Console.WriteLine("Dumping string table.");
AppInfo.Parser.Init(path, Check);
File.WriteAllBytes("string-table.bin",AppInfo.Parser.GetStringTable());
AppInfo.Parser.Term();
Console.WriteLine(AppInfo.Parser.GetProperty("runtime_version"));
Console.ReadKey();
}
if (ArgsFull.Contains("-t") || ArgsFull.Contains("--dump-tree"))
{
Console.WriteLine("Dumping tree table.");
AppInfo.Parser.Init(path, Check);
File.WriteAllBytes("tree-table.bin", AppInfo.Parser.GetTreeTable());
AppInfo.Parser.Term();
}
if (ArgsFull.Contains("-ft") || ArgsFull.Contains("--dump-tree"))
{
Console.WriteLine("Dumping file table.");
AppInfo.Parser.Init(path, Check);
File.WriteAllBytes("file-table.bin", AppInfo.Parser.GetTreeTable());
AppInfo.Parser.Term();
}
if (ArgsFull.Contains("-d") || ArgsFull.Contains("--decompile") || args.Length == 1)
{
Console.WriteLine("Decompiling.");
AppInfo.Parser.DecompileCXML(path, Check);
}
}
}
}

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>

View File

@ -1,47 +0,0 @@
namespace AppInfoParser
{
partial class AppInfoParser
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.SuspendLayout();
//
// AppInfoParser
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(761, 450);
this.Name = "AppInfoParser";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
}
}

View File

@ -1,20 +0,0 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AppInfoParser
{
public partial class AppInfoParser : Form
{
public AppInfoParser()
{
InitializeComponent();
}
}
}

View File

@ -1,83 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4FA43D28-B9C7-4149-9BBE-D9195E77DD64}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>AppInfoParser</RootNamespace>
<AssemblyName>AppInfoParser</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AppInfoParser.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AppInfoParser.Designer.cs">
<DependentUpon>AppInfoParser.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="AppInfoParser.resx">
<DependentUpon>AppInfoParser.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -1,22 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace AppInfoParser
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new AppInfoParser());
}
}
}

View File

@ -1,36 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AppInfoParser")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AppInfoParser")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("4fa43d28-b9c7-4149-9bbe-d9195e77dd64")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// 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.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -1,71 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace AppInfoParser.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AppInfoParser.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -1,117 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -1,30 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace AppInfoParser.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -1,7 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

View File

@ -1 +0,0 @@
af8324120b1f2efc4f18c2006d14ebeb47aed483