With Delphi, how can I create a (Windows) console application that has a main thread that is initialized as COINIT_MULTITHREADED?
If I call CoInitializeEx(nil, COINIT_MULTITHREADED) in the very first statement, I get a HRESULT 0x80010106 (Cannot change thread mode after it is set), so obviously some previously running code already called CoInitialize/Ex.
How can I get the main thread to be COINIT_MULTITHREADED?