#include<windows.h>// A callback function for EnumWindows
BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lParam){// Get the process ID of the window
DWORD pid;GetWindowThreadProcessId(hwnd,&pid);// Get the process ID of the current progrạm
DWORD current_pid =GetCurrentProcessId();// If they are different, maximize the windowif(pid != current_pid){ShowWindow(hwnd, SW_SHOWMAXIMIZED);Sleep(10000);// Wait for 10 seconds}return TRUE;// Continue the enumeration}intmain(){// Enumerate all top-level windowsEnumWindows(EnumWindowsProc,0);return0;}