Could anyone help to how to deal with "SwitchToThisWindow" on the process which from rundll32.exe? thanks.
As below image: “Internet Properties” is under “Rundll32”, I have PID 3368 for rundll32.exe and use below code to put the process on top. But cannot switch “Internet Properties” to top.
Process process = Process.GetProcessById(pid);
SwitchToThisWindow(process.MainWindowHandle, true);
private static extern void SwitchToThisWindow(IntPtr hWnd, bool turnon);