#include <iostream>
#include <windows.h>

BOOL CALLBACK EnumWindowsProc(HWND hwnd, LPARAM lparam)
{
    LPTSTR title = 0;

	GetWindowText(hwnd, title, sizeof(title));
	std::cout << "Window Name: " << std::endl;

	return true;
}

int main(int argc, char* argv[])
{
	EnumWindows(EnumWindowsProc, NULL);

	std::cin.get();
	return 0;
}