#include <windows.h>
#include <stdio.h>
int main() {
LPWSTR className = NULL;
GetClassNameW(GetActiveWindow(), className, 255);
wprintf(L"%s", className);
}
WCHAR className[255];
GetClassNameW(GetConsoleWindow(), className, 255);
wprintf(L"%s", className);