feat: switching slides

This commit is contained in:
Gerard Gascón 2024-06-07 00:08:43 +02:00
parent 0ebb7f6459
commit 5f7bb79e56
4 changed files with 45 additions and 2 deletions

14
Win32Api.cs Normal file
View file

@ -0,0 +1,14 @@
using System.Runtime.InteropServices;
namespace SwitchSlidePresenter;
public static class Win32Api {
public const UInt32 WM_KEYDOWN = 0x0100;
public const int VK_NEXT = 0x22;
public const int VK_PRIOR = 0x21;
[DllImport("user32.dll")]
public static extern bool PostMessage(IntPtr hWnd, UInt32 Msg, int wParam, int lParam);
[DllImport("user32.dll")]
public static extern IntPtr GetForegroundWindow();
}