On Wed Sep 13 15:09:03 2023 +0000, Paul Gofman wrote:
Or in fact I can use apartment_increment_mta_usage() by nesting critical section if you think is better.
Right, I just find it hard to believe that RoActivate* needs something significantly different. Ultimately we should implement it properly at some point, so objects are hosted correctly. I suspect that thread mode used by first RoInit() call is supposed to be used for all activations that follow, but STA/MTA are still reused between RoActivate* and CoCreate*.