using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;
using System.Windows;
using System.Threading;
using Microsoft.Win32;
using System.Runtime.InteropServices;
namespace ZeroBruta
{
public static class Win32
{
[DllImport("user32.dll")]
public static extern IntPtr GetForegroundWindow();
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern int GetWindowText(IntPtr hWnd, [Out] StringBuilder lpString, int nMaxCount);
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern int GetWindowTextLength(IntPtr hWnd);
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string className, IntPtr windowTitle);
[DllImport("user32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, IntPtr dwExtraInfo);
[DllImport("user32.dll", SetLastError = true)]
public static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
[DllImport("user32.dll", SetLastError = true)]
public static extern void SwitchToThisWindow(IntPtr hWnd, bool fAltTab);
public const int KEYEVENTF_KEYUP = 2;
public const UInt32 VK_F6 = 0x75;
public const UInt32 VK_ESCAPE = 27;
public const UInt32 VK_RETURN = 13;
public const UInt32 VK_ALT = 18;
public const UInt32 VK_TAB = 9;
public const UInt32 VK_CTRL = 17;
public const UInt32 VK_SPACE = 32;
public const UInt32 VK_PUNTO = 190;
public const UInt32 VK_EACC = 186;
public const UInt32 VK_SOMMA = 187;
public const UInt32 VK_VIR = 188;
public const UInt32 VK_DIFF = 189;
public const UInt32 VK_UACC = 191;
public const UInt32 VK_OACC = 192;
public const UInt32 VK_ACC = 219;
public const UInt32 VK_SLASH = 220;
public const UInt32 VK_IACC = 221;
public const UInt32 VK_AACC = 222;
public const UInt32 VK_MIN = 223;
public const UInt32 VK_ALTGR = 165;
public const UInt32 VK_0 = 48;
public const UInt32 VK_1 = 49;
public const UInt32 VK_2 = 50;
public const UInt32 VK_3 = 51;
public const UInt32 VK_4 = 52;
public const UInt32 VK_5 = 53;
public const UInt32 VK_6 = 54;
public const UInt32 VK_7 = 55;
public const UInt32 VK_8 = 56;
public const UInt32 VK_9 = 57;
public const UInt32 VK_A = 65;
public const UInt32 VK_B = 66;
public const UInt32 VK_C = 67;
public const UInt32 VK_D = 68;
public const UInt32 VK_E = 69;
public const UInt32 VK_F = 70;
public const UInt32 VK_G = 71;
public const UInt32 VK_H = 72;
public const UInt32 VK_I = 73;
public const UInt32 VK_J = 74;
public const UInt32 VK_K = 75;
public const UInt32 VK_L = 76;
public const UInt32 VK_M = 77;
public const UInt32 VK_N = 78;
public const UInt32 VK_O = 79;
public const UInt32 VK_P = 80;
public const UInt32 VK_Q = 81;
public const UInt32 VK_R = 82;
public const UInt32 VK_S = 83;
public const UInt32 VK_T = 84;
public const UInt32 VK_U = 85;
public const UInt32 VK_V = 86;
public const UInt32 VK_W = 87;
public const UInt32 VK_X = 88;
public const UInt32 VK_Y = 89;
public const UInt32 VK_Z = 90;
public const UInt32 VK_SHIFT = 16;
public const UInt32 WM_KEYDOWN = 0x100;
public const UInt32 WM_KEYUP = 0x101;
}
}