Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
ZeroBruta + ZeroDizio NEW - Win32.cs

Win32.cs

Caricato da:
Scarica il programma completo

  1. using System;
  2. using System.IO;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.Diagnostics;
  10. using System.Windows;
  11. using System.Threading;
  12. using Microsoft.Win32;
  13. using System.Runtime.InteropServices;
  14.  
  15.  
  16. namespace ZeroBruta
  17. {
  18.     public static class Win32
  19.     {
  20.         [DllImport("user32.dll")]
  21.         public static extern IntPtr GetForegroundWindow();
  22.  
  23.         [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
  24.         public static extern int GetWindowText(IntPtr hWnd, [Out] StringBuilder lpString, int nMaxCount);
  25.  
  26.         [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
  27.         public static extern int GetWindowTextLength(IntPtr hWnd);
  28.  
  29.         [DllImport("user32.dll", SetLastError = true)]
  30.         public static extern IntPtr FindWindowEx(IntPtr parentHandle, IntPtr childAfter, string className, IntPtr windowTitle);
  31.  
  32.         [DllImport("user32.dll")]
  33.         public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, IntPtr dwExtraInfo);
  34.  
  35.         [DllImport("user32.dll", SetLastError = true)]
  36.         public static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
  37.  
  38.         [DllImport("user32.dll", SetLastError = true)]
  39.         public static extern void SwitchToThisWindow(IntPtr hWnd, bool fAltTab);
  40.  
  41.         public const int KEYEVENTF_KEYUP = 2;
  42.  
  43.         public const UInt32 VK_F6 = 0x75;
  44.         public const UInt32 VK_ESCAPE = 27;
  45.         public const UInt32 VK_RETURN = 13;
  46.         public const UInt32 VK_ALT = 18;
  47.         public const UInt32 VK_TAB = 9;
  48.         public const UInt32 VK_CTRL = 17;
  49.         public const UInt32 VK_SPACE = 32;
  50.  
  51.         public const UInt32 VK_PUNTO = 190;
  52.         public const UInt32 VK_EACC = 186;
  53.         public const UInt32 VK_SOMMA = 187;
  54.         public const UInt32 VK_VIR = 188;
  55.         public const UInt32 VK_DIFF = 189;
  56.         public const UInt32 VK_UACC = 191;
  57.         public const UInt32 VK_OACC = 192;
  58.         public const UInt32 VK_ACC = 219;
  59.         public const UInt32 VK_SLASH = 220;
  60.         public const UInt32 VK_IACC = 221;
  61.         public const UInt32 VK_AACC = 222;
  62.         public const UInt32 VK_MIN = 223;
  63.         public const UInt32 VK_ALTGR = 165;
  64.  
  65.         public const UInt32 VK_0 = 48;
  66.         public const UInt32 VK_1 = 49;
  67.         public const UInt32 VK_2 = 50;
  68.         public const UInt32 VK_3 = 51;
  69.         public const UInt32 VK_4 = 52;
  70.         public const UInt32 VK_5 = 53;
  71.         public const UInt32 VK_6 = 54;
  72.         public const UInt32 VK_7 = 55;
  73.         public const UInt32 VK_8 = 56;
  74.         public const UInt32 VK_9 = 57;
  75.         public const UInt32 VK_A = 65;
  76.         public const UInt32 VK_B = 66;
  77.         public const UInt32 VK_C = 67;
  78.         public const UInt32 VK_D = 68;
  79.         public const UInt32 VK_E = 69;
  80.         public const UInt32 VK_F = 70;
  81.         public const UInt32 VK_G = 71;
  82.         public const UInt32 VK_H = 72;
  83.         public const UInt32 VK_I = 73;
  84.         public const UInt32 VK_J = 74;
  85.         public const UInt32 VK_K = 75;
  86.         public const UInt32 VK_L = 76;
  87.         public const UInt32 VK_M = 77;
  88.         public const UInt32 VK_N = 78;
  89.         public const UInt32 VK_O = 79;
  90.         public const UInt32 VK_P = 80;
  91.         public const UInt32 VK_Q = 81;
  92.         public const UInt32 VK_R = 82;
  93.         public const UInt32 VK_S = 83;
  94.         public const UInt32 VK_T = 84;
  95.         public const UInt32 VK_U = 85;
  96.         public const UInt32 VK_V = 86;
  97.         public const UInt32 VK_W = 87;
  98.         public const UInt32 VK_X = 88;
  99.         public const UInt32 VK_Y = 89;
  100.         public const UInt32 VK_Z = 90;
  101.         public const UInt32 VK_SHIFT = 16;
  102.  
  103.         public const UInt32 WM_KEYDOWN = 0x100;
  104.         public const UInt32 WM_KEYUP = 0x101;
  105.     }
  106.  
  107.  
  108.    
  109. }