using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Management;
namespace GetDestopMonitor
{
class Program
{
static void Main(string[] args)
{
DisplatMonitorInfo();
WriteLocalIP();
UpdateLocalIP();
Console.WriteLine("\n\n*******正在修改IP地址,请稍后...******\n\n");
System.Threading.Thread.Sleep(3000);
WriteLocalIP();
WeatchMemory();
WeatchCPU();
}
/// <summary>
/// 显示屏幕分辨率
/// </summary>
private static void DisplatMonitorInfo()
{
ManagementClass desktopMonitor = new ManagementClass("Win32_DesktopMonitor