I'm trying to capture the title of all active windows. I call EnumWindows which calls EnumWindowsProc. GetWindowText only returns null strings however. It only needs to get the first 5 characters. Any suggestions?
bool EnumWindowsProc(void* hWnd, long lParam)
char* win = "Title";
GetWindowTextA(hWnd, win, 6);