开发者

Access denied for WriteProcessMemory

开发者 https://www.devze.com 2023-03-28 18:43 出处:网络
WriteProcessMemory() doesnt work for me as I get an access denied error. I am currently launching the process using

WriteProcessMemory() doesnt work for me as I get an access denied error.

I am currently launching the process using

CreateProcess(wcImageName, wcCommandLine, NULL, NULL, false, DEBUG_PROCESS, NULL, NULL, &stStartupInfo, &stProcessInfo);

How do I modify this to gain write access?

I am launching this process on the same machine. How can I get write access without pr开发者_开发问答oviding username and password?


Make sure you are calling WriteProcessMemory with correct handle, and in the debugger loop. You may read this article.

When you create process, you do have full rights - and when you launch with DEBUG_PROCESS or DEBUG_ONLY_THIS_PROCESS you have more rights!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号