コード例 #1
0
 public static extern int SystemParametersInfo(
     int uAction,
     int uParam,
     ref ANIMATIONINFO lpvParam,
     int fuWinIni);
コード例 #2
0
ファイル: Win32.cs プロジェクト: shadabahmed/quizroom_hacker
 public static extern int SystemParametersInfo(
     int uAction,
     int uParam,
     ref ANIMATIONINFO lpvParam,
     int fuWinIni);
コード例 #3
0
ファイル: NotifyIcon.cs プロジェクト: takkkken/ssicat
        /// <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;
        }