Advertisement
Guest User

Untitled

a guest
May 30th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1.  private void button1_Click(object sender, EventArgs e)
  2.         {
  3.             IntPtr hWnd = GetTopWindow(0);
  4.             int ProcID;
  5.             while (hWnd = GetNextWindow(hWnd, 2))
  6.             {
  7.                 GetWindowThreadProcessId(hWnd, &ProcID);
  8.                
  9.             }
  10.  
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement