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