-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8182676
commit 487a5f4
Showing
90 changed files
with
81 additions
and
1,959 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Diagnostics; | ||
using System.Security.Principal; | ||
|
||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
|
||
|
||
|
||
Debug.WriteLine("This process has access to the entire public desktop API surface"); | ||
Debug.WriteLine("Running as admin: " + IsAppRunningAsAdministrator()); | ||
|
||
// Wait for 10 seconds | ||
AutoResetEvent areWeDone = new AutoResetEvent(false); | ||
areWeDone.WaitOne(10000); | ||
} | ||
|
||
|
||
public static bool IsAppRunningAsAdministrator() | ||
{ | ||
var identity = new WindowsPrincipal(WindowsIdentity.GetCurrent()); | ||
Check warning on line 22 in ThreeFingersDragEngine/Program.cs GitHub Actions / build
Check warning on line 22 in ThreeFingersDragEngine/Program.cs GitHub Actions / build
|
||
return identity.IsInRole(WindowsBuiltInRole.Administrator); | ||
Check warning on line 23 in ThreeFingersDragEngine/Program.cs GitHub Actions / build
Check warning on line 23 in ThreeFingersDragEngine/Program.cs GitHub Actions / build
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<SelfContained>true</SelfContained> | ||
</PropertyGroup> | ||
|
||
</Project> |
Oops, something went wrong.