mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Profiles core - Pass real delta time brushes/effects Profiles core - Allow main segment to be disabled on layers General module - Removed test data model General module - Removed expensive open window scan, was fun to try :P Profile editor - Refactored segments Profile editor - Updated segment visuals to scale well when really narrow
26 lines
816 B
C#
26 lines
816 B
C#
using System.Diagnostics;
|
|
using Artemis.Core.Plugins.Abstract.DataModels.Attributes;
|
|
using Artemis.Plugins.Modules.General.Utilities;
|
|
|
|
namespace Artemis.Plugins.Modules.General.DataModel.Windows
|
|
{
|
|
public class WindowDataModel
|
|
{
|
|
[DataModelIgnore]
|
|
public Process Process { get; }
|
|
|
|
public WindowDataModel(Process process)
|
|
{
|
|
Process = process;
|
|
WindowTitle = process.MainWindowTitle;
|
|
ProcessName = process.ProcessName;
|
|
|
|
// Accessing MainModule requires admin privileges, this way does not
|
|
ProgramLocation = WindowUtilities.GetProcessFilename(process);
|
|
}
|
|
|
|
public string WindowTitle { get; set; }
|
|
public string ProcessName { get; set; }
|
|
public string ProgramLocation { get; set; }
|
|
}
|
|
} |