GetCommandLine (kernel32)
Last changed: -68.216.6.5

.
Summary

C# Signature:

[DllImport("kernel32.dll")]

private static extern String GetCommandLine();

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Use this API function when you need access to raw command line string and not already parsed arguments in Main(string[] args)

Sample Code:

string commandLine = GetCommandLine();

Alternative Managed API:

Do you know one? Please contribute it!

Documentation