积极答复者
Windows 7下用SetWindowHookEx,Hook “Shell_TrayWnd”时,普通用户运行能成功,提升权限至管理员却失败了,返回ERROR_ACCESS_DENIED

问题
答案
-
你好,
从Windows Vista 起, Windows 引入了新的强制完整性控制(Mandatory Integrity Control)。级别低的进程不能访问高级别的进程资源。此功能被用来隔离应用程序,在一个中等级别,如在标准用户环境中运行的应用,应用不能挂接到系统级并运行在管理员模式下的应用程序,高性级别应用,可以钩到较低级别的进程,如Windows Internet Explorer 7或8。一个低权限的过程不能使用线程钩子附加到一个更高权限的进程中,不能使用钩子监视一个更高权限的进程,并不能执行DLL注入到一个更高权限的进程。
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Rob Pan 2011年10月10日 8:19
-
你好,
BUILDIN\Administrators是内置管理员权限,您需要把您的程序也提高到相同的权限,才可以访问拥有相同权限的程序
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Rob Pan 2011年10月10日 8:19
全部回复
-
你好,
从Windows Vista 起, Windows 引入了新的强制完整性控制(Mandatory Integrity Control)。级别低的进程不能访问高级别的进程资源。此功能被用来隔离应用程序,在一个中等级别,如在标准用户环境中运行的应用,应用不能挂接到系统级并运行在管理员模式下的应用程序,高性级别应用,可以钩到较低级别的进程,如Windows Internet Explorer 7或8。一个低权限的过程不能使用线程钩子附加到一个更高权限的进程中,不能使用钩子监视一个更高权限的进程,并不能执行DLL注入到一个更高权限的进程。
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Rob Pan 2011年10月10日 8:19
-
你好,
BUILDIN\Administrators是内置管理员权限,您需要把您的程序也提高到相同的权限,才可以访问拥有相同权限的程序
Rob Pan [MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Rob Pan 2011年10月10日 8:19