Skip to content

Commit

Permalink
Trying to setup Desktop Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementGre committed Nov 11, 2023
1 parent 8182676 commit 487a5f4
Show file tree
Hide file tree
Showing 90 changed files with 81 additions and 1,959 deletions.
19 changes: 0 additions & 19 deletions App.xaml

This file was deleted.

79 changes: 0 additions & 79 deletions App.xaml.cs

This file was deleted.

Binary file removed Assets/BadgeLogo.scale-100.png
Binary file not shown.
Binary file removed Assets/BadgeLogo.scale-125.png
Binary file not shown.
Binary file removed Assets/BadgeLogo.scale-150.png
Binary file not shown.
Binary file removed Assets/BadgeLogo.scale-200.png
Binary file not shown.
Binary file removed Assets/BadgeLogo.scale-400.png
Binary file not shown.
Binary file removed Assets/LargeTile.scale-100.png
Binary file not shown.
Binary file removed Assets/LargeTile.scale-125.png
Binary file not shown.
Binary file removed Assets/LargeTile.scale-150.png
Binary file not shown.
Binary file removed Assets/LargeTile.scale-200.png
Binary file not shown.
Binary file removed Assets/LargeTile.scale-400.png
Binary file not shown.
Binary file removed Assets/SmallTile.scale-100.png
Binary file not shown.
Binary file removed Assets/SmallTile.scale-125.png
Binary file not shown.
Binary file removed Assets/SmallTile.scale-150.png
Binary file not shown.
Binary file removed Assets/SmallTile.scale-200.png
Binary file not shown.
Binary file removed Assets/SmallTile.scale-400.png
Binary file not shown.
Binary file removed Assets/SplashScreen.scale-100.png
Binary file not shown.
Binary file removed Assets/SplashScreen.scale-125.png
Binary file not shown.
Binary file removed Assets/SplashScreen.scale-150.png
Binary file not shown.
Binary file removed Assets/SplashScreen.scale-200.png
Binary file not shown.
Binary file removed Assets/SplashScreen.scale-400.png
Binary file not shown.
Binary file removed Assets/WideTile.scale-100.png
Binary file not shown.
Binary file removed Assets/WideTile.scale-125.png
Binary file not shown.
Binary file removed Assets/WideTile.scale-150.png
Binary file not shown.
Binary file removed Assets/WideTile.scale-200.png
Binary file not shown.
Binary file removed Assets/WideTile.scale-400.png
Binary file not shown.
Binary file removed Assets/icon-52.png
Diff not rendered.
Binary file removed Assets/icon.ico
Binary file not shown.
Binary file removed Assets/logo-150.scale-100.png
Diff not rendered.
Binary file removed Assets/logo-150.scale-125.png
Diff not rendered.
Binary file removed Assets/logo-150.scale-150.png
Diff not rendered.
Binary file removed Assets/logo-150.scale-200.png
Diff not rendered.
Binary file removed Assets/logo-150.scale-400.png
Diff not rendered.
Binary file removed Assets/logo-44.altform-lightunplated_targetsize-16.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed Assets/logo-44.altform-unplated_targetsize-16.png
Diff not rendered.
Binary file removed Assets/logo-44.altform-unplated_targetsize-24.png
Diff not rendered.
Binary file removed Assets/logo-44.altform-unplated_targetsize-256.png
Diff not rendered.
Binary file removed Assets/logo-44.altform-unplated_targetsize-32.png
Diff not rendered.
Binary file removed Assets/logo-44.altform-unplated_targetsize-48.png
Diff not rendered.
Binary file removed Assets/logo-44.scale-100.png
Diff not rendered.
Binary file removed Assets/logo-44.scale-125.png
Diff not rendered.
Binary file removed Assets/logo-44.scale-150.png
Diff not rendered.
Binary file removed Assets/logo-44.scale-200.png
Diff not rendered.
Binary file removed Assets/logo-44.scale-400.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-16.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-16_altform-lightunplated.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-16_altform-unplated.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-24.png
Diff not rendered.
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-24_altform-unplated.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-256.png
Diff not rendered.
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-256_altform-unplated.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-32.png
Diff not rendered.
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-32_altform-unplated.png
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-48.png
Diff not rendered.
Diff not rendered.
Binary file removed Assets/logo-44.targetsize-48_altform-unplated.png
Diff not rendered.
Binary file removed Assets/logo-512.scale-100.png
Diff not rendered.
Binary file removed Assets/logo-512.scale-125.png
Diff not rendered.
Binary file removed Assets/logo-512.scale-150.png
Diff not rendered.
Binary file removed Assets/logo-512.scale-200.png
Diff not rendered.
Binary file removed Assets/logo-512.scale-400.png
Diff not rendered.
51 changes: 0 additions & 51 deletions Package.appxmanifest

This file was deleted.

10 changes: 0 additions & 10 deletions Properties/launchSettings.json

This file was deleted.

52 changes: 0 additions & 52 deletions SettingsData.cs

This file was deleted.

107 changes: 0 additions & 107 deletions SettingsWindow.xaml.cs

This file was deleted.

25 changes: 25 additions & 0 deletions ThreeFingersDragEngine/Program.cs
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

View workflow job for this annotation

GitHub Actions / build

This call site is reachable on all platforms. 'WindowsPrincipal' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 22 in ThreeFingersDragEngine/Program.cs

View workflow job for this annotation

GitHub Actions / build

This call site is reachable on all platforms. 'WindowsIdentity.GetCurrent()' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
return identity.IsInRole(WindowsBuiltInRole.Administrator);

Check warning on line 23 in ThreeFingersDragEngine/Program.cs

View workflow job for this annotation

GitHub Actions / build

This call site is reachable on all platforms. 'WindowsPrincipal.IsInRole(WindowsBuiltInRole)' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)

Check warning on line 23 in ThreeFingersDragEngine/Program.cs

View workflow job for this annotation

GitHub Actions / build

This call site is reachable on all platforms. 'WindowsBuiltInRole.Administrator' is only supported on: 'windows'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
}
}
11 changes: 11 additions & 0 deletions ThreeFingersDragEngine/ThreeFingersDragEngine.csproj
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>
Loading

0 comments on commit 487a5f4

Please sign in to comment.