07 2013 档案
摘要:/// /// 系统控制类,关机,关闭显示器,打开屏幕保存程序等 /// public class SystemPowerController { private const int WM_SYSCOMMAND = 0x112; //系统消息 private const int SC_SCREENSAVE = 0xF140; //启动屏幕保护消息 private const int SC_MONITORPOWER = 0xF170; //关闭显示器的系统命令 private static readon...
阅读全文
摘要:windows+r 键打开运行输入cmd按回车把下列命令在cmd中点击右键粘贴进去,按回车,即可添加到防火墙例外程序列表中。netsh advfirewall firewall delete rule name="WinClient" dir=in program="C:\Program Files\YView\WinClient.exe" [security=authnoencap action=allow]解释:name="WinClient" 在防火墙中显示的名称 program="C:\Program Files\Y
阅读全文
摘要:function AddProcessFwauthor() STRING szCServer,szFServer,szTmp; OBJECT objFirewall, objProfile, objCS, objFS;begin SdShowMsg("将服务器添加到Windows防火墙例外程序中,请稍后...", TRUE); //要添加到防火墙程序的应用程序的完整路径:安装目录\WinClient.exe szCServer = TARGETDIR ^ ("WinClient" + ".exe"); try set obj...
阅读全文