[英]acces global mutex/semaphore from user application without admin rights
I'm trying to get Process A to send a array towards Process B and figured I would do this through IPC. 我正在尝试让进程A向进程B发送一个数组,并认为我会通过IPC做到这一点。 I've managed to get everything working until the point where they have to acces the same Memory mapped file.
我设法使所有工作正常进行,直到必须访问相同的内存映射文件为止。
After reading upon different ways to do this I found mutexes and semaphores to best the best way without relying on 3rd party software. 在阅读了不同的方法后,我发现互斥锁和信号量是最好的最佳方法,而无需依赖第三方软件。 But the main thing is that Process A is an application that cannot be run with admin rights, but Process B is a windows service running in the local system enviroment.
但是最主要的是,进程A是无法使用管理员权限运行的应用程序,而进程B是在本地系统环境中运行的Windows服务。 So I tried creating global mutexes and semaphores but they dont seem to cut it.
因此,我尝试创建全局互斥量和信号量,但是它们似乎并没有削减它。 because these require admin rights to acces from my user application.
因为这些要求管理员权限才能从我的用户应用程序访问。
So how would one create a mutex or semaphore for this kind of situation? 那么如何为这种情况创建互斥量或信号量呢?
I apologize in advance for my english and question format(first time poster). 我预先为我的英语和问题格式(第一次张贴)道歉。
Named mutex permission access security: https://msdn.microsoft.com/en-us/library/system.security.accesscontrol.mutexsecurity(v=vs.110).aspx 命名互斥权限访问安全性: https : //msdn.microsoft.com/zh-cn/library/system.security.accesscontrol.mutexsecurity(v=vs.110).aspx
Access Control for you named mutex https://msdn.microsoft.com/en-us/library/system.threading.mutex.setaccesscontrol(v=vs.110).aspx 您名为互斥锁的访问控制https://msdn.microsoft.com/zh-cn/library/system.threading.mutex.setaccesscontrol(v=vs.110).aspx
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.