Ejemplo n.º 1
0
        /// <summary>
        /// Show or hide file extentions of the system.(Wrapper)
        /// </summary>
        /// <param name="bShow">True to show, false to hide.</param>

        public static void ShowFileExtension(bool bShow)
        {
            //let error bubble up.
            Shell32.SHELLSTATE state = new Shell32.SHELLSTATE();
            state.fShowExtensions = (uint)(bShow ? 1 : 0);
            Shell32.SHGetSetSettings(ref state, Shell32.SSF.SSF_SHOWEXTENSIONS, true);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Show or hide file extentions of the system.(Wrapper)
        /// </summary>
        /// <param name="bShow">True to show, false to hide.</param>

        public static void ShowFileExtension(bool bShow)
        {
            //let error bubble up.
            Shell32.SHELLSTATE state = new Shell32.SHELLSTATE();
            state.fShowExtensions = (uint)(bShow ? 1 : 0);
            Shell32.SHGetSetSettings(ref state, Shell32.SSF.SSF_SHOWEXTENSIONS, true);
        }