From 5b2ed660ffb47b10928e4b3221ed6fca4416b2e0 Mon Sep 17 00:00:00 2001
From: Thomas Brugman <145768128+Githubguy132010@users.noreply.github.com>
Date: Thu, 27 Feb 2025 15:40:42 +0100
Subject: [PATCH] Support x64 architecture
Fixes #18
Add support for x64 non-ARM based PCs for Amperage and Windows Recall.
* **Amperage/Amperage.csproj**: Add configurations for x64 architecture and include necessary DLLs for x64.
* **Amperage/NativeMethods.cs**: Add x64-specific code for NPU detection.
* **Amperage/Extensions/WinRTAwaiter.cs**: Ensure compatibility with x64 architecture.
* **ProcessCreationExt/ProcessCreationExt.csproj**: Add configurations for x64 architecture.
* **VmDetection/VmDetection.csproj**: Add configurations for x64 architecture.
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/thebookisclosed/AmperageKit/issues/18?shareId=XXXX-XXXX-XXXX-XXXX).
---
Amperage/Amperage.csproj | 8 ++++++-
Amperage/Extensions/WinRTAwaiter.cs | 2 +-
Amperage/NativeMethods.cs | 4 ++++
ProcessCreationExt/ProcessCreationExt.csproj | 22 +++++++++++++++++++-
VmDetection/VmDetection.csproj | 22 +++++++++++++++++++-
5 files changed, 54 insertions(+), 4 deletions(-)
diff --git a/Amperage/Amperage.csproj b/Amperage/Amperage.csproj
index 0d07c30..a2cad58 100644
--- a/Amperage/Amperage.csproj
+++ b/Amperage/Amperage.csproj
@@ -108,7 +108,13 @@
Always
+
+ Always
+
+
+ Always
+
-
\ No newline at end of file
+
diff --git a/Amperage/Extensions/WinRTAwaiter.cs b/Amperage/Extensions/WinRTAwaiter.cs
index 0a10cf8..e4ca14c 100644
--- a/Amperage/Extensions/WinRTAwaiter.cs
+++ b/Amperage/Extensions/WinRTAwaiter.cs
@@ -31,4 +31,4 @@ public static TaskAwaiter GetAwaiter(this IAsyncOperationWithProgressprompt
4
+
+ true
+ bin\x64\Debug\
+ DEBUG;TRACE
+ true
+ full
+ x64
+ 7.3
+ prompt
+
+
+ bin\x64\Release\
+ TRACE
+ true
+ true
+ pdbonly
+ x64
+ 7.3
+ prompt
+
@@ -47,4 +67,4 @@
-
\ No newline at end of file
+
diff --git a/VmDetection/VmDetection.csproj b/VmDetection/VmDetection.csproj
index 8c11ca3..8d37724 100644
--- a/VmDetection/VmDetection.csproj
+++ b/VmDetection/VmDetection.csproj
@@ -32,6 +32,26 @@
4
true
+
+ true
+ bin\x64\Debug\
+ DEBUG;TRACE
+ true
+ full
+ x64
+ 7.3
+ prompt
+
+
+ bin\x64\Release\
+ TRACE
+ true
+ true
+ pdbonly
+ x64
+ 7.3
+ prompt
+
@@ -49,4 +69,4 @@
-
\ No newline at end of file
+