6 ms·
First, classic Win32 apps ("desktop versions") have had access to a subset of useful WinRT components (WinRT the COM replacement, not WinRT the OS SKU) since ea
by WorldMaker 10y ago
First, classic Win32 apps ("desktop versions") have had access to a subset of useful WinRT components (WinRT the COM replacement, not WinRT the OS SKU) since early in Windows 8's history. (8.1 and 10 both opened up further the WinRT APIs that Win32 apps can consume.) A lot of the APIs only make sense inside the "sandbox" as you refer to it, but it's not locked down quite as much as you think it is. [Then there's the recently built Project Centennial bridge to give Win32 apps even greater access to WinRT APIs and the ability to spin up modern user interfaces in a mixed-interop model and ease transitions between the two types of apps.]
Second, that doesn't actually matter in this case anyway (and is a red herring) because it is Cortana automating Office and not the other way around. Win32 automation is relatively straight forward, including the most basic automation of them all: cut, copy, and paste. It could be Cortana is calling into COM components in Office or even older, more generic Windows Automation COM components. (Which can still be done, with permissions, from "inside the sandbox". Again the "sandbox" is not as locked down as a lot of people seem to think it is, especially in Windows 10.)