如何屏蔽Windows98的系统组合键(50分)

  • 主题发起人 主题发起人 唐纳王
  • 开始时间 开始时间

唐纳王

Unregistered / Unconfirmed
GUEST, unregistred user!
请教:如何屏蔽Windows98的系统组合键,以防止用户通过组合键切换到其它应用程序?
 
当你不需要让用户按Alt+Enter、Ctrl+Alt+Del、Ctrl+Esc等功能键的时候加入以下代码:<br>Var<br>temp:integer;<br>begin<br>SystemParametersInfo(Spi_screensaverrunning,1,@temp,0);<br>end;<br><br>当你要恢复功能键时用以下代码:<br>Var<br>Temp:integer;<br>begin<br>SystemParametersInfo(spi_screensaverrunning,0,@temp,0);<br>end;
 
SystemParametersInfo(SPI_SCREENSAVERRUNNING,1,0,0)
 
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; procedure TForm1.FormCreate(Sender: TObject); <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; temp: Integer; <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; begin <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, @temp, 0); <br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end;
 
接受答案了.
 
后退
顶部