Пример #1
0
        public static bool ShowFileProperties(string Filename)
        {
            ShellExecuteInfo info = default;

            info.CbSize = System.Runtime.InteropServices.Marshal.SizeOf(info);
            info.LpVerb = "properties";
            info.LpFile = Filename;
            info.NShow  = SW_SHOW;
            info.FMask  = SEE_MASK_INVOKEIDLIST;
            return(ShellExecuteEx(ref info));
        }
Пример #2
0
 private static extern bool ShellExecuteEx(ref ShellExecuteInfo lpExecInfo);