Exemple #1
0
 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)
     {
     }
 }
Exemple #2
0
 private static extern bool A(ref Shell32Api.AT x);