HWND GetForgoundWindows() 获取当前前置窗口在windows 7和windows 10下虚拟桌面切换后表现不同。 所以强烈不建议使用此函数! 转载于:https://www.cnblogs.com/2018shawn/p/10224645.html