public static void ShellExecuteEx(string verb, string realFileName) { try { Shell32Api.AT a = default(Shell32Api.AT); a.cbSize = (uint)Marshal.SizeOf(typeof(Shell32Api.AT)); a.fMask = 12u; a.lpVerb = verb; a.lpFile = realFileName; a.nShow = 1; Shell32Api.A(ref a); } catch (Exception) { } }
private static extern bool A(ref Shell32Api.AT x);