Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
AcsCore updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
paolodelfino committed Oct 4, 2022
1 parent 2f487ff commit a7d0c5d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Acs.Gui/Acs.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AcsCore" Version="1.0.1.1" />
<PackageReference Include="AcsCore" Version="1.0.1.2" />
<PackageReference Include="Guna.UI2.WinForms" Version="2.0.3.5" />
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions Acs.Gui/Forms/AcsDumper.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions Acs.Gui/Forms/AcsDumper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics;
using System.Security.Principal;
using Acs.Core.Helpers;
using Dumper = Acs.Core.Services.AcsDumper;

Expand Down Expand Up @@ -96,4 +97,14 @@ private void DumpAvailableBtn_Click(object sender, EventArgs e)

postDumpProcess();
}

private void AcsDumper_Load(object sender, EventArgs e)
{
bool isAdministrator = new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);

if (!isAdministrator)
{
MessageBox.Show("You need to run this program as administrator to dump processes.", "Acs", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}

0 comments on commit a7d0c5d

Please # to comment.