static SystemSettingsChanger() { originalNonClientMetrics = NativeMethods.NONCLIENTMETRICS.Default; NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETNONCLIENTMETRICS, originalNonClientMetrics.cbSize, ref originalNonClientMetrics, 0); originalAnimationInfo = NativeMethods.ANIMATIONINFO.Default; NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETANIMATION, originalAnimationInfo.cbSize, ref originalAnimationInfo, 0); NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETMOUSEVANISH, 0, ref originalHideMouseWhenTyping, 0); NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETACTIVEWINDOWTRACKING, 0, ref originalFocusFollowsMouse, 0); NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETACTIVEWNDTRKZORDER, 0, ref originalFocusFollowsMouseSetOnTop, 0); }
static SystemSettingsChanger() { originalNonClientMetrics = NativeMethods.NONCLIENTMETRICS.Default; NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETNONCLIENTMETRICS, originalNonClientMetrics.cbSize, ref originalNonClientMetrics, 0); originalAnimationInfo = NativeMethods.ANIMATIONINFO.Default; NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETANIMATION, originalAnimationInfo.cbSize, ref originalAnimationInfo, 0); NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETMOUSEVANISH, 0, ref originalHideMouseWhenTyping, 0); NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETACTIVEWINDOWTRACKING, 0, ref originalFocusFollowsMouse, 0); NativeMethods.SystemParametersInfo(NativeMethods.SPI.SPI_GETACTIVEWNDTRKZORDER, 0, ref originalFocusFollowsMouseSetOnTop, 0); }