[DllImport("Kernel32.dll")]
public static extern string GetCommandLineA();
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
try
{
MessageBox.Show(ThisAddIn.GetCommandLineA());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}