This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Find the top-most window. We need the Z-order to be | |
//relative to this | |
HWND window = GetTopWindow(GetDesktopWindow()); | |
do | |
{ | |
//Your code | |
} | |
while (window = GetWindow(window, GW_HWNDNEXT)); |