简体   繁体   English

从没有管理员权限的用户应用程序访问全局互斥锁/信号灯

[英]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). 我预先为我的英语和问题格式(第一次张贴)道歉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Visual Studio 中调试没有管理员权限的应用程序 - Debug application without admin rights in Visual Studio 安装没有管理员权限的 WinForms 应用程序 - Install WinForms application without admin rights 在没有UAC的系统上执行具有管理员权限的应用程序 - Execute an application with admin rights on system without UAC 在当前用户的上下文中以服务的管理员权限运行ui应用程序 - Run ui application with admin rights from service in current user's context 在没有管理员权限的情况下自动更新Vista中的.NET应用程序 - automatically update my .NET application in Vista without admin rights 如何从未以管理员权限运行的应用程序中记录错误 - How to Log error from application which is not running with admin rights 如何从非管理员帐户作为管理员用户启动需要管理员权限的程序 - How to start a program requiring admin rights as an admin user from a nonadmin account 如何在没有管理员权限的情况下安装我的C#应用​​程序? - How Do I Make My C# Application Install Without Admin Rights? 如何在VS安装程序项目中使用非托管DLL,但又不需要用户具有管理员权限? - How to use an unmanaged DLL in VS installer project, but without the user needing admin rights? 管理员权限提示在C#应用程序中弹出 - Admin rights prompt popup in C# application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM