internal static bool ShowFileProperties(string filename) { var info = new Shellexecuteinfo(); info.cbSize = Marshal.SizeOf(info); info.lpVerb = "properties"; info.lpFile = filename; info.nShow = SwShow; info.fMask = Seemaskinvokeidlist; return ShellExecuteEx(ref info); }
public static void ShowFileProperties(string filename) { var info = new Shellexecuteinfo(); info.lpFile = filename; info.lpVerb = "properties"; info.cbSize = Marshal.SizeOf(info); info.nShow = SW_SHOW; info.fMask = SEE_MASK_INVOKEIDLIST; ShellExecuteEx(ref info); }
/// <summary> /// Show the properties dialog of a file. /// </summary> /// <param name="path">The path of the file.</param> /// <returns></returns> internal static void ShowFileProperties(string path) { Shellexecuteinfo info = new Shellexecuteinfo(); info.cbSize = Marshal.SizeOf(info); info.lpVerb = "properties"; info.lpFile = path; info.nShow = 5; info.fMask = 12; ShellExecuteEx(ref info); }
internal static bool ShowFileProperties(string filename) { var info = new Shellexecuteinfo(); info.cbSize = Marshal.SizeOf(info); info.lpVerb = "properties"; info.lpFile = filename; info.nShow = SwShow; info.fMask = Seemaskinvokeidlist; return(ShellExecuteEx(ref info)); }
private static extern bool ShellExecuteEx(ref Shellexecuteinfo lpExecInfo);