Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- IntPtr hWnd = GetTopWindow(0);
- int ProcID;
- while (hWnd = GetNextWindow(hWnd, 2))
- {
- GetWindowThreadProcessId(hWnd, &ProcID);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement