关于win7进程间共享数据问题
红烧肉 2011-12-23 11:27:56 在xp系统上,进程间共享数据比较容易,直接的CreateFileMapping(),OpenFileMapping(),MapViewofFile()几个API就好,基本不需要考虑权限的问题,但是在vista之后,这个方法就不灵验了。
A Remote Desktop Services server has multiple namespaces for the following named kernel objects: events, semaphores, mutexes, waitable timers, file-mapping objects, and job objects. There is a global namespace used primarily by services in client/server applications. In addition, each client session has a separate namespace for these objects, such as in Windows Vista.
这一段是从msdn摘过来的。
我现在想问的问题是,win7上面有没有什么办法,普通用户(非管理员用户)进程能不能实现进程间数据共享,msdn上提倡用一个服务程序调用CreateFileMapping(),客户应用程序就可以访问这个handle,但是我现在的是两个程序都是application程序。
有哪位大侠可以帮助小弟实现win7 2个应用程序(非管理员权限运行)共享内存数据。
我想实在不行就文件共享算了。纠结啊。