Represents a directory of resources inside a Portable Executable.
Beispiel #1
0
 public void SetRootDirectory(ResourceDirectory rootDir)
 {
     resourcesTree.Nodes.Clear();
     TreeNode rootDirectoryNode = new TreeNode("Root Resource Directory");
     rootDirectoryNode.Tag = rootDir;
     PopulateDirectory(rootDirectoryNode, rootDir);
     resourcesTree.Nodes.Add(rootDirectoryNode);
 }
Beispiel #2
0
 private void PopulateDirectory(TreeNode parentNode, ResourceDirectory directory)
 {
     for (int i = 0; i < directory.ChildEntries.Length; i++)
     {
         TreeNode node = new TreeNode("Resource Directory Entry - ID:" + directory.ChildEntries[i].Name);
         node.Tag = directory.ChildEntries[i];
         PopulateDirectoryEntry(node, directory.ChildEntries[i]);
         parentNode.Nodes.Add(node);
     }
 }