摘要:
DEVMODE数据结构中包含了有关设备初始化和打印机环境的信息。在C#中定义DEVMODE结构: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct DEVMODE { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]... 阅读全文
摘要:
1. 获取屏幕分辨率 using System.Windows.Forms; A. 获取屏幕分辨率 int SH = Screen.PrimaryScreen.Bounds.Height; int SW = Screen.PrimaryScreen.Bounds.Width; B. 通过调用DLL改变屏幕分辨率 [DllImp... 阅读全文