C#中改变显示器的分辨率和刷新频率voidChangeRes(){Form1t=newForm1();longRetVal=0;DEVMODEdm=newDEVMODE();dm.dmSize=(short)Marshal.SizeOf(typeof(DEVMODE));dm.dmPelsWidth=1024;dm.dmPelsHeight=768;dm.dmDisplayFrequency=85;dm.dmFields=DEVMODE.DM_PELSWIDTH|DEVMODE.DM_PELSHEI