Esempio n. 1
0
        public static int CurrentRefreshRate()
        {
            var vDevMode = new NativeMethod.DEVMODE();

            return(NativeMethod.EnumDisplaySettings(null, NativeMethod.ENUM_CURRENT_SETTINGS, ref vDevMode) ? vDevMode.dmDisplayFrequency : 60);
        }