上一页 1 ··· 89 90 91 92 93
摘要: 1.要实现锁定系统不让别人用,可以调用系统锁定API函数来实现 //引入API函数 [DllImport("user32 ")] public static extern bool LockWorkStation();//这个是调用windows的系统锁定 在需要的时候直接写LockWorkStat 阅读全文
posted @ 2009-05-26 12:19 飞扬青云 阅读(9527) 评论(4) 推荐(0)
摘要: c#实现程序的开机启动大致有两种方法,就是写入注册表或者采用服务程序,最近一直研究着用C#来操作注册表,下面介绍的方法便是用注册表来实现程序随开机启动。 关键代码很短,如下: 前提要引入命名空间 using Microsoft.Win32; RegistryKey key = Registry.Lo 阅读全文
posted @ 2009-05-26 12:13 飞扬青云 阅读(1008) 评论(0) 推荐(2)
上一页 1 ··· 89 90 91 92 93