/[RomCheater]/trunk/RomCheater.PluginFramework/Core/ProcContainer.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/ProcContainer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 100 by william, Thu May 10 09:03:13 2012 UTC revision 101 by william, Thu May 10 09:53:16 2012 UTC
# Line 16  namespace RomCheater.PluginFramework.Cor Line 16  namespace RomCheater.PluginFramework.Cor
16              : this()              : this()
17          {          {
18              this.ProcessInfo = process;              this.ProcessInfo = process;
19              string fname = ThreadControl.GetProcessFilename(process);              FileInfo fi = null;
20              FileInfo fi = new FileInfo(fname);              string fname = "";
21                try
22                {
23                    fname = ProcessModeleInfoEx.GetMainModulePath(process);
24                    fi = new FileInfo(fname);
25                }
26                catch (Exception ex)
27                {
28                    throw;
29                }
30              this.FileName = fi.FullName;              this.FileName = fi.FullName;
31              this.Name = fi.Name;              this.Name = fi.Name;
32              this.CreateProcessIcon(4);              this.CreateProcessIcon(4);
# Line 26  namespace RomCheater.PluginFramework.Cor Line 35  namespace RomCheater.PluginFramework.Cor
35              : this()              : this()
36          {          {
37              this.ProcessInfo = process; this.ProcessIcon = icon.ToBitmap();              this.ProcessInfo = process; this.ProcessIcon = icon.ToBitmap();
38              string fname = ThreadControl.GetProcessFilename(process);              string fname = ProcessModeleInfoEx.GetMainModulePath(process);
39              FileInfo fi = new FileInfo(fname);              FileInfo fi = new FileInfo(fname);
40              this.FileName = fi.FullName;              this.FileName = fi.FullName;
41              this.Name = fi.Name;              this.Name = fi.Name;
# Line 35  namespace RomCheater.PluginFramework.Cor Line 44  namespace RomCheater.PluginFramework.Cor
44              : this()              : this()
45          {          {
46              this.ProcessInfo = process; this.ProcessIcon = icon;              this.ProcessInfo = process; this.ProcessIcon = icon;
47              string fname = ThreadControl.GetProcessFilename(process);              string fname = ProcessModeleInfoEx.GetMainModulePath(process);
48              FileInfo fi = new FileInfo(fname);              FileInfo fi = new FileInfo(fname);
49              this.FileName = fi.FullName;              this.FileName = fi.FullName;
50              this.Name = fi.Name;              this.Name = fi.Name;

Legend:
Removed from v.100  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.22