Example #1
0
 public bool ShellOpen(string file, SHOW_COMMANDS param)
 {
     if ((int)ShellExecute(IntPtr.Zero, "open", file, "", "", param) > VALID_FILE)
     {
         return true;
     }
     return false;
 }
Example #2
0
 private static extern IntPtr ShellExecute(IntPtr hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, SHOW_COMMANDS nShowCmd);