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