[英]How can I tell if a VSTO Add-in is loaded?
I'm working on a VSTO add-in for Outlook that, if another custom VSTO is loaded, will perform a specific action. 我正在为Outlook开发VSTO加载项,如果加载了另一个自定义VSTO,它将执行特定操作。 How would I determine if that VSTO is loaded? 我如何确定该VSTO是否已加载? I've not delved too far into COM as of yet other than writing a number of add-ins. 除了编写许多插件外,我对COM的研究还不够深入。
You can check the key: 您可以检查密钥:
"HKLM\\Software\\Microsoft\\Office\\Outlook\\Addins[YourAddInName]" “ HKLM \\软件\\ Microsoft \\ Office \\ Outlook \\ Addins [YourAddInName]”
in the registry. 在注册表中。
Existence of the key means that the AddIn is installed. 密钥的存在意味着已安装插件。 You can also read the value LoadBehaviour under the above key, the value 3 means that the addin is loaded/to be loaded normally. 您也可以在上述键下读取值LoadBehaviour,值3表示加载项已加载/正常加载。 The value 2 means that the addin has problems. 值2表示该插件有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.