… to be called before CoRegisterClassObject, which can be called indirectly by Application.Initialize. You can see this comment at the beginning of a newly created service application. Unfortunately, today it is only half of the truth.