AIMS.Libraries.Forms.Docking.User32.SystemParametersInfo C# (CSharp) Метод

SystemParametersInfo() приватный Метод

private SystemParametersInfo ( SystemParametersInfoActions uAction, uint uParam, uint &lpvParam, uint fuWinIni ) : bool
uAction SystemParametersInfoActions
uParam uint
lpvParam uint
fuWinIni uint
Результат bool
        public static extern bool SystemParametersInfo(SystemParametersInfoActions uAction, uint uParam, ref uint lpvParam, uint fuWinIni);

Usage Example

Пример #1
0
        private void SetTimerMouseTrack()
        {
            if (ActivePane == null || ActivePane.IsActivated || FlagDragging)
            {
                _timerMouseTrack.Enabled = false;
                return;
            }

            // start the timer
            uint hovertime = 0;

            User32.SystemParametersInfo(Win32.SystemParametersInfoActions.GetMouseHoverTime, 0, ref hovertime, 0);

            // assign a default value 400 in case of setting Timer.Interval invalid value exception
            if (((int)hovertime) <= 0)
            {
                hovertime = 400;
            }

            _timerMouseTrack.Interval = 2 * (int)hovertime;
            _timerMouseTrack.Enabled  = true;
        }