Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IntPtr hWnd = IntPtr.Zero;
- foreach (Process pList in Process.GetProcesses())
- {
- if (pList.MainWindowTitle.Contains("Return "))
- {
- hWnd = pList.MainWindowHandle;
- break;
- }
- }
- try
- {
- StringBuilder sb = new StringBuilder(1);
- GetWindowText(hWnd, sb, 100);
- }
- catch
- {
- throw;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement