Quasar/Client/Core/Commands/CommandHandler.cs

33 lines
1.3 KiB
C#
Raw Normal View History

using System.Collections.Generic;
2014-07-08 12:58:53 +00:00
using System.Drawing;
using System.Runtime.InteropServices;
2015-01-13 18:29:11 +00:00
using xClient.Core.RemoteShell;
using xClient.Core.Helper;
2014-07-08 12:58:53 +00:00
2015-01-13 18:29:11 +00:00
namespace xClient.Core.Commands
2014-07-08 12:58:53 +00:00
{
/* THIS PARTIAL CLASS SHOULD CONTAIN VARIABLES OR P/INVOKES NECESSARY FOR VARIOUS COMMANDS (if needed). */
public static partial class CommandHandler
{
[DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
private static extern bool DeleteFile(string name);
[DllImport("user32.dll")]
private static extern bool SetCursorPos(int x, int y);
[DllImport("user32.dll")]
private static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);
public static UnsafeStreamCodec StreamCodec;
public static Bitmap LastDesktopScreenshot;
private static Shell _shell;
2015-04-28 05:30:03 +00:00
private static Dictionary<int, string> _canceledDownloads = new Dictionary<int, string>();
private const int MOUSEEVENTF_LEFTDOWN = 0x02;
private const int MOUSEEVENTF_LEFTUP = 0x04;
private const int MOUSEEVENTF_RIGHTDOWN = 0x08;
private const int MOUSEEVENTF_RIGHTUP = 0x10;
private const string DELIMITER = "$E$";
}
}