简体   繁体   中英

Can I set up a COM+ application to create “single-use” out-proc servers?

If I write an out-proc COM server myself I can make it "single use" by specifying REGCLS_SINGLEUSE flag in CoRegisterClassObject() call.

How can I achieve the same effect when I create a COM+ application and add an in-proc server there so that COM+ surrogate is used and I don't need to write surrogate code? In other words, how can I make the out-proc COM server created by COM+ "single use"?

我不能说我曾经尝试过,但是如果将其设置为1,看起来好像COM +应用程序的COM +目录属性RecycleActivationLimit可能会做您想要的事情。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM