Initial commit to new repository

This commit is contained in:
2026-04-03 18:22:19 +09:00
commit 4458bb0f52
7672 changed files with 452440 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Runtime.InteropServices;
namespace AxCopilot.Services;
internal static class WindowTracker
{
public static nint PreviousWindow { get; private set; } = IntPtr.Zero;
[DllImport("user32.dll")]
private static extern nint GetForegroundWindow();
public static void Capture()
{
nint foregroundWindow = GetForegroundWindow();
if (foregroundWindow != IntPtr.Zero)
{
PreviousWindow = foregroundWindow;
}
}
}