如何屏蔽Power/Wake/Sleep这三个键?(100分)

  • 主题发起人 主题发起人 Caicheng
  • 开始时间 开始时间
C

Caicheng

Unregistered / Unconfirmed
GUEST, unregistred user!
用屏幕保护的方式是屏蔽不了这三个键的。如果不用驱动(vxd/wdm)的方式来拦截它的话,<br>不知还有没有其他方法。
 
程序中没别的办法<br>唯一的办法是用502胶水
 
我已经可以屏蔽了,除了一些小问题。
 
请问如何屏蔽Ctrl+Alt+Del三个组合键
 
怎样屏蔽的?顺便问一下如何屏蔽Win 键,多谢指教
 
我也想知道
 
键盘钩子中不中?
 
首先,用程序获得这些键的键值,然后再在程序里设热键,让这些键的功能失效,<br>呷呷呷~~~~~~~
 
无法得到键值
 
上面说的键是系统级的键<br>一般的热键没有办法<br>只有写驱动
 
要是锁定所有键盘则:<br>procedure Lockkey(lock: boolean);//锁定用汇编<br>var<br>&nbsp; &nbsp; temp:integer;<br>begin<br>&nbsp; &nbsp; if lock = true then<br>&nbsp; &nbsp; begin<br>&nbsp; &nbsp; &nbsp; &nbsp; asm //封锁20端口98&amp;95<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN AL,21H<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OR AL,02H<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUT 21H,AL<br>&nbsp; &nbsp; &nbsp; &nbsp; end;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//封锁Ctrl-Alt-Del<br>&nbsp; &nbsp; &nbsp; &nbsp; SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, @temp, 0);<br>&nbsp; &nbsp; &nbsp;end<br>&nbsp; &nbsp; &nbsp;else<br>&nbsp; &nbsp; &nbsp;begin<br>&nbsp; &nbsp; &nbsp; &nbsp; asm //解开20端口<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IN AL,21H<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND AL,0FDH<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUT 21H,AL<br>&nbsp; &nbsp; &nbsp; &nbsp; end;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//解开Ctrl-Alt-Del<br>&nbsp; &nbsp; &nbsp; &nbsp; SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, @temp, 0);<br>&nbsp; &nbsp; &nbsp;end;<br>end;
 
用usb驱动实现了。别无他路可走。
 
后退
顶部