本文介绍了通知application2有关注册表项形式application1中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有2个Windows应用程序,Application1&应用2.

Application1将向注册表项写入一个布尔值.一旦写入注册表项,Application1就需要将对注册表项所做的更改通知给Application2,以便Application2可以基于注册表项的值来完成其工作.

因此,Application1每次更改注册表项时都需要告知Application2.

我将如何实现呢?

我已经遍历了消息队列,WaitEventHandle,远程处理,WCF内容,但是我的体系结构不支持远程处理,WCF,消息队列.

所以我决定使用WaitEventHandle,但是Application2需要等到Application1响应,如果Application1不响应,Application2将等待无限时间.这真的很糟糕.

请给我建议其他解决方案,或使用其他事件类型.

预先感谢.

Hi,

I have 2 Windows Applications, Application1 & Application2.

Application1 will write a boolean value to the registry key. As soon as it writes to the registry key, Application1 need to notify Application2 about the changes done to the registry key so that Application2 can do its work based on the registry key value.

So, Application1 need to tell Application2 each time it makes changes to registrykey.

How will i achieve this?

I have already gone through Message Queues, WaitEventHandle, Remoting, WCF stuffs, but my architecture doesnot support Remoting, WCF, Message Queues.

So i decided to use WaitEventHandle, but Application2 need to wait until Application1 responds, What if Application1 doesnot respond, Application2 will wait for infinite time. This is really bad.

Please suggest me some other solutions, or using some other event types.

Thanks in advance.

推荐答案



这篇关于通知application2有关注册表项形式application1中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 09:51