Exemplo n.º 1
0
        /// <summary>
        /// プロパティ表示の為のCLRラッパー
        /// </summary>
        /// <param name="handle"></param>
        /// <param name="path"></param>
        public static void ShowProperty(IntPtr handle, string path)
        {
            SHELLEXECUTEINFO shinfo = new SHELLEXECUTEINFO();

            shinfo.cbSize       = Marshal.SizeOf(typeof(SHELLEXECUTEINFO));
            shinfo.fMask        = SEE_MASK_INVOKEIDLIST;
            shinfo.lpVerb       = "Properties";
            shinfo.hwnd         = (int)handle;
            shinfo.lpParameters = null;
            shinfo.lpDirectory  = null;
            shinfo.lpFile       = path;

            ShellExecuteEx(shinfo);
        }
Exemplo n.º 2
0
 public static extern int ShellExecuteEx(SHELLEXECUTEINFO shinfo);