I’ve created an Island project in Swift targeting Windows.
I’m trying to set up COM in my app but I get errors for using unknown identifiers.
import rtl
CoInitializeEx(nil, COINIT.COINIT_MULTITHREADED as! DWORD)
CoInitializeSecurity(nil, -1, nil, nil, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPERSONATE, nil, EOLE_AUTHENTICATION_CAPABILITIES.EOAC_NONE as! DWORD, nil)
I get these errors on compiling
Unknown identifier "RPC_C_AUTHN_LEVEL_DEFAULT"
Unknown identifier “RPC_C_IMP_LEVEL_IMPERSONATE”
I have imported rtl. Do I need to import anything else?
What namespace can I find them under?