Update main.cpp

I changed main.cpp into WinAPI using program.