EnumWindows does not detect windows
问题 I am trying to use EnumWindows to print out the titles of all visible windows. It was working at first, EnumWindows was calling the callback function createWindow() multiple times with each call of EnumWindows. But without adding any meaningful code it stopped working and now only calls createWindow() once with a handle of a not visible window. Here is my code: int main() { int row = 2; int col = 2; vector<Window> detectedWindows((row * col) + 4); EnumWindows(&createWindow, (LPARAM)