But for some reason, as soon as I try to ComImport anything, Unity crashes. Anyone has any idea on why, and if Unity is even capable of ComImport? My target deployment environment is only Standalone Windows.
If that also crashes Unity for you, it would seem likely that the problem depends on something in your environment. I could imagine that Unity’s web player would have trouble because Microsoft has added lots of barriers to calling COM from a browser due to security concerns.
Correction: This only works in the Editor for me. In the standalone player, the first cast (QueryInterface()) from COM object to interface fails, just as it would happen if all COM-specific attributes were simply ignored.