namespace Artemis.Core.Services;
///
/// This readonly struct provides information about a process.
///
public readonly struct ProcessInfo
{
#region Properties & Fields
///
/// Gets the Identifier for the process.
///
public readonly int ProcessId;
///
/// Gets the name of the process.
///
public readonly string ProcessName;
///
/// Gets the Image Name of the Process.
///
public readonly string ImageName; // TODO DarthAffe 01.09.2023: Do we need this if we can't get it through Process.GetProcesses()?
///
/// Gets the Executable associated with the Process.
///
public readonly string Executable;
#endregion
#region Constructors
///
/// Initializes a new instance of the struct.
///
/// The identifier for the process.
/// The name of the process.
/// The Image Name of the process.
/// The executable associated with the process.
public ProcessInfo(int processId, string processName, string imageName, string executable)
{
ProcessId = processId;
ProcessName = processName;
ImageName = imageName;
Executable = executable;
}
#endregion
}