141 lines
4.8 KiB
C#
141 lines
4.8 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Represents a.dll or .exe file that is loaded into a particular process.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020000EA RID: 234
|
|
[global::System.ComponentModel.Designer("System.Diagnostics.Design.ProcessModuleDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
|
|
public class ProcessModule : global::System.ComponentModel.Component
|
|
{
|
|
// Token: 0x0600083A RID: 2106 RVA: 0x00016610 File Offset: 0x00014810
|
|
internal ProcessModule(IntPtr baseaddr, IntPtr entryaddr, string filename, FileVersionInfo version_info, int memory_size, string modulename)
|
|
{
|
|
this.baseaddr = baseaddr;
|
|
this.entryaddr = entryaddr;
|
|
this.filename = filename;
|
|
this.version_info = version_info;
|
|
this.memory_size = memory_size;
|
|
this.modulename = modulename;
|
|
}
|
|
|
|
/// <summary>Gets the memory address where the module was loaded.</summary>
|
|
/// <returns>The load address of the module.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x17000218 RID: 536
|
|
// (get) Token: 0x0600083B RID: 2107 RVA: 0x00016648 File Offset: 0x00014848
|
|
[MonitoringDescription("The base memory address of this module")]
|
|
public IntPtr BaseAddress
|
|
{
|
|
get
|
|
{
|
|
return this.baseaddr;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the memory address for the function that runs when the system loads and runs the module.</summary>
|
|
/// <returns>The entry point of the module.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
|
|
/// </PermissionSet>
|
|
// Token: 0x17000219 RID: 537
|
|
// (get) Token: 0x0600083C RID: 2108 RVA: 0x00016650 File Offset: 0x00014850
|
|
[MonitoringDescription("The base memory address of the entry point of this module")]
|
|
public IntPtr EntryPointAddress
|
|
{
|
|
get
|
|
{
|
|
return this.entryaddr;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the full path to the module.</summary>
|
|
/// <returns>The fully qualified path that defines the location of the module.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x1700021A RID: 538
|
|
// (get) Token: 0x0600083D RID: 2109 RVA: 0x00016658 File Offset: 0x00014858
|
|
[MonitoringDescription("The file name of this module")]
|
|
public string FileName
|
|
{
|
|
get
|
|
{
|
|
return this.filename;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets version information about the module.</summary>
|
|
/// <returns>A <see cref="T:System.Diagnostics.FileVersionInfo" /> that contains the module's version information.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
|
|
/// </PermissionSet>
|
|
// Token: 0x1700021B RID: 539
|
|
// (get) Token: 0x0600083E RID: 2110 RVA: 0x00016660 File Offset: 0x00014860
|
|
[global::System.ComponentModel.Browsable(false)]
|
|
public FileVersionInfo FileVersionInfo
|
|
{
|
|
get
|
|
{
|
|
return this.version_info;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the amount of memory that is required to load the module.</summary>
|
|
/// <returns>The size, in bytes, of the memory that the module occupies.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x1700021C RID: 540
|
|
// (get) Token: 0x0600083F RID: 2111 RVA: 0x00016668 File Offset: 0x00014868
|
|
[MonitoringDescription("The memory needed by this module")]
|
|
public int ModuleMemorySize
|
|
{
|
|
get
|
|
{
|
|
return this.memory_size;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the name of the process module.</summary>
|
|
/// <returns>The name of the module.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x1700021D RID: 541
|
|
// (get) Token: 0x06000840 RID: 2112 RVA: 0x00016670 File Offset: 0x00014870
|
|
[MonitoringDescription("The name of this module")]
|
|
public string ModuleName
|
|
{
|
|
get
|
|
{
|
|
return this.modulename;
|
|
}
|
|
}
|
|
|
|
/// <summary>Converts the name of the module to a string.</summary>
|
|
/// <returns>The value of the <see cref="P:System.Diagnostics.ProcessModule.ModuleName" /> property.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000841 RID: 2113 RVA: 0x00016678 File Offset: 0x00014878
|
|
public override string ToString()
|
|
{
|
|
return this.ModuleName;
|
|
}
|
|
|
|
// Token: 0x04000285 RID: 645
|
|
private IntPtr baseaddr;
|
|
|
|
// Token: 0x04000286 RID: 646
|
|
private IntPtr entryaddr;
|
|
|
|
// Token: 0x04000287 RID: 647
|
|
private string filename;
|
|
|
|
// Token: 0x04000288 RID: 648
|
|
private FileVersionInfo version_info;
|
|
|
|
// Token: 0x04000289 RID: 649
|
|
private int memory_size;
|
|
|
|
// Token: 0x0400028A RID: 650
|
|
private string modulename;
|
|
}
|
|
}
|