Hello,
You can use FindWindow call to get windows of whatever type of relation to the specified window.
For example, the code given below will get all the windows open on desktop.
Regards,Code:// Get the topmost window in Z order HWND hWnd = GetWindow(hwnd, GW_HWNDFIRST); while (hWnd != NULL) // If the window handle is valid { if (IsWindowVisible(hWnd)) // If the window is visible { // Get window details and process info ... } // Loops through all windows hWnd = GetWindow(hWnd, GW_HWNDNEXT); }
Pravin.




Reply With Quote