积极答复者
请问Network Service用户的进程为什么调用RegSetValueEx还有OpenProcess失败?

问题
答案
-
你可以用process monitor看看读写注册表的时候用的是什么身份,然后给对应用户授权,或者用impersonate换个有权限的用户
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Rob Pan 2011年11月4日 8:52
全部回复
-
用户身份选错了,权限要求这么多的应该运行在Local System下。提权并不能无中生有给自己加权限。
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
你可以用process monitor看看读写注册表的时候用的是什么身份,然后给对应用户授权,或者用impersonate换个有权限的用户
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Rob Pan 2011年11月4日 8:52