C#调用键盘钩子锁屏

上传者: sunny_lv | 上传时间: 2023-04-05 22:31:37 | 文件大小: 460KB | 文件类型: RAR
C#调用键盘钩子锁屏,禁用快捷键! C# .NET锁屏程序(顺带屏蔽任务管理器) 第一步:将窗体的FormBorderStyle设置为none,WindowState设为Maximized 占据整个屏幕。 第二步:使用钩子监控全局键盘事件。即屏蔽掉大部分系统热键。但是屏蔽ctrl+alt+del 任务管理器则较复杂,这个特例后面讨论。 使用全局钩子应该注意的地方:将代码放到一个独立的类库里面(只有dll才能被注射到其他进程中)。

文件下载

资源详情

[{"title":"( 41 个子文件 460KB ) C#调用键盘钩子锁屏","children":[{"title":"LockScreen","children":[{"title":"LockScreen.sln <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"LockScreen.suo <span style='color:#111;'> 27.50KB </span>","children":null,"spread":false},{"title":"KeyboardHookDLL","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"KeyboardHookDLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"KeyboardHookDLL.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"KeyboardHookDLL.csproj <span style='color:#111;'> 2.49KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"KeyboardHookDLL.pdb <span style='color:#111;'> 13.50KB </span>","children":null,"spread":false},{"title":"KeyboardHookDLL.dll <span style='color:#111;'> 6.50KB </span>","children":null,"spread":false},{"title":"KeyboardHookDLL.csproj.FileListAbsolute.txt <span style='color:#111;'> 606B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"KeyboardHook.cs <span style='color:#111;'> 6.09KB </span>","children":null,"spread":false},{"title":"Class1.cs <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LockScreen","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"LockScreen.exe <span style='color:#111;'> 103.50KB </span>","children":null,"spread":false},{"title":"LockScreen.vshost.exe <span style='color:#111;'> 14.50KB </span>","children":null,"spread":false},{"title":"LockScreen.pdb <span style='color:#111;'> 43.50KB </span>","children":null,"spread":false},{"title":"LockScreen.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Form1.Designer.cs <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false},{"title":"LockScreen.csproj <span style='color:#111;'> 3.97KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"LockScreen.exe <span style='color:#111;'> 103.50KB </span>","children":null,"spread":false},{"title":"LockScreen.pdb <span style='color:#111;'> 43.50KB </span>","children":null,"spread":false},{"title":"LockScreen.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":[{"title":"Properties.Resources.Designer.cs.dll <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"LockScreen.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"LockScreen.csproj.GenerateResource.Cache <span style='color:#111;'> 883B </span>","children":null,"spread":false},{"title":"LockScreen.Properties.Resources.resources <span style='color:#111;'> 89.58KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"KeyboardHook.cs <span style='color:#111;'> 9.72KB </span>","children":null,"spread":false},{"title":"CommonClass.cs <span style='color:#111;'> 495B </span>","children":null,"spread":false},{"title":"Resources","children":[{"title":"Visual Studio 2008","children":[{"title":"Settings","children":[{"title":"CurrentSettings.vssettings <span style='color:#111;'> 166.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"Backup Files","children":[{"title":"WebPOS","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"yy.jpg <span style='color:#111;'> 89.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"Form2.cs <span style='color:#111;'> 516B </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"Form2.Designer.cs <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.87KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 3.01KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"CommonClass.BlockInput(true);","children":[{"title":"bin","children":[{"title":"Debug","children":null,"spread":false}],"spread":true},{"title":"CommonClass.BlockInput(true);.csproj <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Class1.cs <span style='color:#111;'> 181B </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明