123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- using System.Runtime.InteropServices;
- namespace RemoteControlLib.API
- {
-
-
-
- public class Api
- {
-
-
-
-
-
-
-
-
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- public static extern void mouse_event(int flags, int dx, int dy, int dwData, int dwExtraInfo);
-
-
-
-
-
-
- [DllImport("user32.dll", CharSet = CharSet.Auto)]
- public static extern bool SetCursorPos(int X, int Y);
-
-
-
-
-
-
-
- [DllImport("user32.dll", CharSet = CharSet.Auto, EntryPoint = "keybd_event")]
- public static extern void keybd_event(
- byte bVk,
- byte bScan,
- int dwFlags,
- int dwExtraInfo
- );
- }
- }
|