Anyone know how to query the commandline of a running process on win2k ? I've found the getcommandline win32 api but that only returns a pointer to the commandline for the current process I need to be able to retrieve the commandline for a different process than I'm running in. The reason I need this is I have several running processes that all appear identical in the windows tasklist, as the only thing that differentiates them are the parameters supplied when they were started. So to be able to know which ones are still running I need to be able to query the commandline parms. Preferably using Visual Basic 6.0 but any pointers on how to do it would be great as I'm totally stumped.