I've confronted with problem of getting active window's name.
When I use this code:
HWND currentWindowHWND = GetForegroundWindow();
char title[100];
GetWindowTextA(currentWindowHWND, title, 100);
I get something like: "How to get active window's name? - Stack Overflow - Google Chrome".
But I want to get "Google Chrome", which WINAPI function should I use?