两个用户帐户之间的数据通信 [英] Data communication between two user accounts

查看:111
本文介绍了两个用户帐户之间的数据通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Windows 7上运行的应用程序作为'SYSTEM'用户帐户设置/重置标志。我希望能够以作为当前用户运行的应用程序监视此标志。国旗很少改变状态,所以速度并不重要。



有没有人对我如何做这个有任何建议?



我尝试过:



我尝试过使用HKEY_CURRENT_MACHINE注册表部分。这似乎有效,但并非在所有机器上都有效。我怀疑在64位Windows上,注册表是不同的。

I have an application which is running on Windows 7 as 'SYSTEM' user account which sets/resets a flag. I would like to be able to monitor this flag with an application running as the current user. The flag changes state very rarely so speed is not important.

Does anyone have any suggestions as to how I might do this?

What I have tried:

I have tried using HKEY_CURRENT_MACHINE registry section. This appeared to work but not on all machines. I suspect that on 64 bit Windows, the registry is different.

推荐答案

为什么不使用IPC [ ^ ]?


按照CPallini的解决方案 - 作为一组技术/选项的IPC值得关注 - 我会看一下Boost:SharedMemory例如在进程间分享内存 - 1.55.0 [ ^ ]但有很多选项
As per CPallini's solution - IPC as a set of techniques/options is worth looking at - I'd look at Boost:SharedMemory for example Sharing memory between processes - 1.55.0[^] but there are plenty of options


这篇关于两个用户帐户之间的数据通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆