/*----------------------------------------------------------------
// Copyright (C) 2007 liu523@QQ.COM
// 版权所有。
// 开发者:liu523@QQ.COM团队
// 文件名:API.cs
// 文件功能描述:API函数库。
//----------------------------------------------------------------*/
using System;
using System.Runtime.InteropServices;
namespace RemoteControlLib.API
{
///
/// 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
);
}
}