-|exe_initialize_mta.lib|n/a|Initializes the MTA apartment during EXE startup, which allows the use of COM objects in global smart pointers. Because this option leaks an MTA apartment reference during shutdown, do not use it for DLLs. Linking to this is equivalent to including combase.h and defining _EXE_INITIALIZE_MTA. Using this link option adds [onecore.lib](/windows/win32/apiindex/windows-umbrella-libraries.md) to the default library list. If this is undesirable, use [/NODEFAULTLIB](../build/reference/nodefaultlib-ignore-libraries.md) to override this and provide an alternative. |
0 commit comments