ALFA.SystemInfo.AdjustGameDifficultyLevel C# (CSharp) Метод

AdjustGameDifficultyLevel() публичный статический Метод

Adjust the difficulty level of the game.
public static AdjustGameDifficultyLevel ( bool IncreaseDifficulty ) : void
IncreaseDifficulty bool Supplies true to increase /// difficulty, else false to reduce it. Nothing happens if the game /// is already at the highest difficulty and an attempt to increase it, /// or vice versa, is made.
Результат void
        public static void AdjustGameDifficultyLevel(bool IncreaseDifficulty)
        {
            IntPtr ExoAppWindow = GetExoAppWindow();
            IntPtr DifficultySlider = GetExoAppDifficultySliderWindow(ExoAppWindow);

            //
            // Fake a SB_LINE[UP|DOWN] and SB_ENDSCROLL pair of notifications
            // to the parent window.  The actual scroll bar position is not
            // used (and, indeed, the scroll bar has a legal range of 0 - 0),
            // 

            SendMessage(ExoAppWindow,
                WM_VSCROLL,
                (IntPtr)(IncreaseDifficulty == true ? SB_LINEUP : SB_LINEDOWN),
                DifficultySlider);
            SendMessage(ExoAppWindow, WM_VSCROLL, (IntPtr)SB_ENDSCROLL, DifficultySlider);
        }