How do I know if HWND is desktop itself?
I use GetForegroundWindow to get the foreground window handle but if there is no window, then it returns the HWND to the desktop. How do 开发者_如何学JAVAI know if the HWND is the desktop?
Compare it with the result of calling GetDesktopWindow().
Compare the handle with the handle returned by GetDesktopWindow().
精彩评论