Esempio n. 1
0
        /// <summary>
        /// Show file properties
        /// </summary>
        /// <param name="Filename"></param>
        public static void ShowFileProperties(string filename)
        {
            SHELLEXECUTEINFO info = new SHELLEXECUTEINFO();

            info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info);
            info.lpVerb = "open";
            info.lpFile = filename;
            info.nShow  = SW_SHOW;
            info.fMask  = SEE_MASK_INVOKEIDLIST;
            ShellExecuteEx(ref info);
        }
Esempio n. 2
0
 static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo);