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