Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
        /// <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);
        }
Esempio n. 4
0
        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));
        }
Esempio n. 5
0
 private static extern bool ShellExecuteEx(ref Shellexecuteinfo lpExecInfo);
Esempio n. 6
0
 private static extern bool ShellExecuteEx(ref Shellexecuteinfo lpExecInfo);