Esempio n. 1
0
 public static extern int SystemParametersInfo(
     int uAction,
     int uParam,
     ref ANIMATIONINFO lpvParam,
     int fuWinIni);
Esempio n. 2
0
 public static extern int SystemParametersInfo(
     int uAction,
     int uParam,
     ref ANIMATIONINFO lpvParam,
     int fuWinIni);
Esempio n. 3
0
        /// <summary>
        /// Private helper method that indicates whether the user has Window Animation enabled.
        /// </summary>
        /// <returns>true if the user has Window Animation enabled. Otherwise returns false.</returns>
        private bool UseWindowAnimation()
        {
            ANIMATIONINFO animationInfo = new ANIMATIONINFO();

            animationInfo.cbSize = Marshal.SizeOf(animationInfo);

            Win32.SystemParametersInfo(Win32.SPI_GETANIMATION, animationInfo.cbSize,
                ref animationInfo, 0);

            bool animateMinimize = (animationInfo.iMinAnimate != 0);
            return animateMinimize;
        }