Exemple #1
0
        public static bool ShowFileProperties(string Filename)
        {
            SHELLEXECUTEINFO info = new SHELLEXECUTEINFO();

            info.cbSize = Marshal.SizeOf(info);
            info.lpVerb = "properties";
            info.lpFile = Filename;
            info.nShow  = SW_SHOW;
            info.fMask  = SEE_MASK_INVOKEIDLIST;
            return(ShellExecuteEx(ref info));
        }
Exemple #2
0
 static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo);