I trying to look for the file opened in Google Chrome that found in the Taskbar in the function FindWindowEx. And that's what I made,help me to fixed the mistakes cause I dont understand how to do it.
bool show = true;
const int SW_HIDE = 0;
const int SW_SHOW = 5;
taskbarWnd = FindWindow("Shell_TrayWnd", null);
chromeWnd = FindWindowEx(taskbarWnd, IntPtr.Zero, "Google Chrome", null);
ShowWindow(chromeWnd, show ? SW_HIDE : SW_SHOW);
show = !show
thanks for helping :)
It used to work with:
But I don't know if it's working anymore.