Method GetCommandLine
GetCommandLine(int)
Reads command line of a target process This is refactored version of code from https://github.com/VbScrub/ProcessCommandLineDemo
Declaration
public static string GetCommandLine(int processId)
Parameters
| Type | Name | Description |
|---|---|---|
| int | processId |
Returns
| Type | Description |
|---|---|
| string |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | |
| Win32Exception |