migrate Pilz.Win32 & optimize Pilz & Pilz.IO
This commit is contained in:
20
Pilz.Win32/Native/User32.cs
Normal file
20
Pilz.Win32/Native/User32.cs
Normal 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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user