migrate Pilz.Win32 & optimize Pilz & Pilz.IO

This commit is contained in:
2024-09-01 08:54:57 +02:00
parent f370642354
commit 7a94fcf360
55 changed files with 700 additions and 1427 deletions

View File

@@ -0,0 +1,20 @@
using System.Runtime.InteropServices;
namespace Pilz.Win32.Native;
public class User32
{
private const string LIB_USER32 = "user32.dll";
[DllImport(LIB_USER32)]
public static extern bool GetWindowRect(nint hWnd, ref RECT r);
[DllImport(LIB_USER32)]
public static extern nint ChildWindowFromPointEx(nint hWndParent, POINT pt, uint uFlags);
[DllImport(LIB_USER32)]
public static extern short GetKeyState(int keyCode);
}