随笔分类 - 计算机
隐藏/显示任务栏
摘要:/// /// Retrieves a handle to the top-level window whose class name and window name match the specified strings. This function does not sear...
阅读全文
清空回收站
摘要:/// /// Empties the Recycle Bin on the specified drive. /// /// A handle to the parent window of any dialog boxes that might be...
阅读全文
锁定计算机
摘要://锁定计算机[DllImportAttribute("user32.dll")]public static extern void LockWorkStation();禁止关闭计算机private const int WM_QUERYENDSESSION = 0x0011;//windows消息 ...
阅读全文
cmd
摘要:Process p = new Process();//创建进程对象 string drivename = cboDrive.Text;//盘符 string shareName = txtShareName.Text;//共享名 ...
阅读全文
Regist
摘要:using (RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { key.SetValue...
阅读全文
快速锁定计算机
摘要:1. win键+L键2.右键新建ShutCut 输入"rundll32.exe user32.dll,LockWorkStation"若提示找不到,百度下载我没核实过...嘻嘻...参考:http://support.microsoft.com/default.aspx?scid=kb;en-us;164787
阅读全文
找回消失的回收站
摘要:将一下内容另存为inf文件:[Version]signature="$Windows NT$"DriverVer=10/01/2002,5.2.3790.1830[DefaultInstall]AddReg = rec.AddRegDelReg = rec.DelReg[rec.AddReg]HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{645FF040-5081-101B-9F08-00AA002F954E}",,0,"Recycle B
阅读全文
用命令启动:我的电脑,网上邻居,回收站,IE
摘要:win+R下输入:我的电脑explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}网上邻居explorer.exe ::{208D2C60-3AEA-1069-A2D7-08002B30309D}回收站explorer.exe ::{645FF040-5081-101B-9F08-00AA002F954E}打开IEiexplore -new
阅读全文