示例#1
0
        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();
            }
        }
示例#2
0
 ShellExecuteEx(ref ShellExecuteInfo lpExecInfo);