What language is Windows written in?

The boot loader of any operating system is usually written in assembly, and it is true in the case of Windows as well. The rest of the Windows O.S is written in C++ using Win32 API.