Reading Command Line Arguments of Another Process (Win32 C code)

后端 未结 5 1553
甜味超标
甜味超标 2020-12-16 02:41

I need to be able to list the command line arguments (if any) passed to other running processes. I have the PIDs already of the running processes on the system, so basically

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-16 03:28

    If you aren't the parent of these processes, then this is not possible using documented functions :( Now, if you're the parent, you can do your CreateRemoteThread trick, but otherwise you will almost certainly get Access Denied unless your app has admin rights.

提交回复
热议问题