private static void OpenAs(string file) { ShellExecuteInfo sei = new ShellExecuteInfo(); sei.Size = Marshal.SizeOf(sei); sei.Verb = "openas"; sei.File = file; sei.Show = SW_NORMAL; if (!ShellExecuteEx(ref sei)) { throw new System.ComponentModel.Win32Exception(); } }
ShellExecuteEx(ref ShellExecuteInfo lpExecInfo);