如何更改存在过程的权限? [英] How to change the permission of exist process?

查看:93
本文介绍了如何更改存在过程的权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用CreateProcessWithLogonW functino作为管理员帐户创建进程时,该进程是根据管理员权限创建的.

When I use CreateProcessWithLogonW functino to create process as admin account, the process is created as admin's permission.

已经创建了一个进程后,如何更改现有进程的权限,如...创建的进程

When a process is already created, how can I change the permission of the exist process like the process created by

CreateProcessWithLogonW函数?

CreateProcessWithLogonW function?

推荐答案

moozeon写道:

moozeon wrote:

当我使用CreateProcessWithLogonW functino以管理员身份创建进程时帐户,该过程将在管理员的许可下创建.

创建进程后,如何更改 的权限存在的过程,如
创建的过程 CreateProcessWithLogonW函数?

When I use CreateProcessWithLogonW functino to create process as admin  account, the process is created as admin's permission.

When a process is already created, how can I change the permission of  the exist process like the process created by
CreateProcessWithLogonW function?

该过程(或更确切地说,是其线程之一)可能会承担一个责任.通过调用Impersonate * API中的一种来更改不同的用户身份,例如ImpersonateLoggedOnUser,ImpersonateNamedPipeClient等.

The process (or rather, to be precise, one of its threads) may assume a  different user's identity by calling one of Impersonate* APIs, e.g.  ImpersonateLoggedOnUser, ImpersonateNamedPipeClient and so on.


这篇关于如何更改存在过程的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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