I ran into the problem of getting the active window name.
When I use this code:
HWND currentWindowHWND = GetForegroundWindow();
char title[100];
GetWindowTextA(currentWindowHWND, title, 100);
I get something like: "How do I get the active window name? - Stack overflow - Google Chrome."
But I want to get "Google Chrome", which WINAPI function to use?
user1724893
source
share