A significant portion of the C++ code in Windows uses very few C++ features or idioms and is basically C with classes or one or two useful features.
/s obviously.
There is code in Windows that was written yesterday and code in Windows that was written over three decades ago.
While not ideal exporting templates has been possible since Windows 3.1 days, as long as one sticks to a specific compiler.