c++ - Finding the command line options a process was launched with -
How do I want to find this, I am currently using CreateToolHelp32. To get the list of running processes in the snapshot and I have found FilePaths for running executables at the moment, but I should be able to know about using command line options to start the process.
I know that this is possible because you can see this process on Explorer, I tried to find the source code of the old process explorer but there was no luck: (
Check and win API calls are what you need. There is no easy example for this, so check the source code here: < / P>
Another way to get this data is to select WMI, smth like this:
Command Line FROM Win32_Process WHERE ProcessId = ???
More information here:
Comments
Post a Comment