andrew4582

User32 Api

Aug 15th, 2010
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Runtime.InteropServices;
  5. namespace System
  6. {
  7.     public static class User32
  8.     {
  9.         public const int SW_RESTORE = 9;
  10.  
  11.         [DllImport("User32")]
  12.         public static extern int FlashWindow(IntPtr hwnd, int bInvert);
  13.         [DllImport("User32")]
  14.         public static extern bool LockWindowUpdate(IntPtr hWndLock);
  15.        
  16.         [DllImport("User32.Dll")]
  17.         public static extern void GetWindowText(int hWnd, StringBuilder str, int nMaxCount);
  18.  
  19.         [DllImport("user32.dll", EntryPoint = "SetForegroundWindow")]
  20.         public static extern bool SetForegroundWindow(IntPtr hWnd);
  21.  
  22.         [DllImport("user32.dll")]
  23.         public static extern Boolean ShowWindow(IntPtr hWnd, Int32 nCmdShow);
  24.  
  25.         public static bool DontKeepRunningWhenClosed = true;
  26.        
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment