Getting command line parameters of a running process
-
I'm trying to get the command line parameters of a running process. Does anyone know how to do this? I know I can set a windows hook with WH_SHELL, but I would like to be able to do it on the fly instead of having my application started before the processes I'm trying to view. -- Rocky Dean Pulley
-
I'm trying to get the command line parameters of a running process. Does anyone know how to do this? I know I can set a windows hook with WH_SHELL, but I would like to be able to do it on the fly instead of having my application started before the processes I'm trying to view. -- Rocky Dean Pulley
You could use the GetCommandLine API. Put this API in a function and run the function remotely using CreateRemoteThread. « Superman »
-
You could use the GetCommandLine API. Put this API in a function and run the function remotely using CreateRemoteThread. « Superman »
Thanks, that's what I'm about to try. I was hoping there was a way to do it without injecting anything but this will do I think. Thanks, -- Rocky -- Rocky Dean Pulley
-
I'm trying to get the command line parameters of a running process. Does anyone know how to do this? I know I can set a windows hook with WH_SHELL, but I would like to be able to do it on the fly instead of having my application started before the processes I'm trying to view. -- Rocky Dean Pulley
rocky_pulley wrote: I'm trying to get the command line parameters of a running process. See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
-
You could use the GetCommandLine API. Put this API in a function and run the function remotely using CreateRemoteThread. « Superman »
The fourth parameter to
CreateRemoteThread()
is the starting point of the new thread. How do you go about getting that starting point (i.e., function) into the other process?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown