CreateFileMapping /" Global \" / SeCreateGlobalPrivilege [英] CreateFileMapping / "Global\" / SeCreateGlobalPrivilege

查看:361
本文介绍了CreateFileMapping /" Global \" / SeCreateGlobalPrivilege的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将使用CreateFileMapping共享内存在会话0和会话1进程之间进行通信,并且必须创建名为"Global \"的共享内存。在会话1中,而不是从会话0开始。(请不要告诉我从会话0创建"Global \"
:))


如果应用程序在会话1使用admin运行,创建"Global \"是没有问题的。共享内存。


但我不想看到"UAC"。弹出窗口。


MSDN说创建"Global \"的唯一方法。命名共享内存是使用 "SeCreateGlobalPrivilege"并创建"Global \"。


但是...它不起作用。


有没有办法创建"全球" \"在会话1和用户模式应用程序中命名共享内存?


解决方案

这是设计行为。 SeCreateGlobalPrivilege已过滤掉,因为它已授予管理员。  

I'm going to use CreateFileMapping shared memory for communicating between session 0 and session 1 process and have to create the shared memory named with "Global\" in session 1, not from session 0. (please don't tell me to create "Global\" from Session 0 :) )

If the app in Session 1 is run with admin, it is no problem to create "Global\" shared memory.

But I don;t want to see "UAC" pop-up window.

The only way MSDN says to create "Global\" named shared memory is to use "SeCreateGlobalPrivilege" and create "Global\".

But... It dose not work.

Is there any way to create "Global\" named shared memory in session 1 and in user mode application ?

解决方案

This is the designed behavior. SeCreateGlobalPrivilege is filtered out because it is granted to administrator.  


这篇关于CreateFileMapping /" Global \" / SeCreateGlobalPrivilege的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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