Earlier quoted context omitted.
Windows is written in C++ mostly. As for X11 and Gtk, well, I argue with THEM.
Unless something has changed drastically since when I was at MS, the Windows kernel and the major OS DLLs is pretty much pure C. The GUI/window manager are more C++. Even Word and Excel were still C (although Office shared much C++ code in a common DLL) Gotta love legacy code from the 1980s/1990s.
Since the new "Going native" wave, C++ has taken the role of main systems programming language, even the DDK now supports it.
Regarding office check their CppCon presentation how the code was ported to C++, refactored and made portable across OS. About 2h session.