• AutoIT写的禁止QQ运行的程序代码


    View Code
     1 if ProcessExists("qq.exe") then 
     2 $QQPID = ProcessExists("qq.exe"
     3 ProcessClose ($QQPID) 
     4 endif 
     5 
     6 
     7 =============================================================== 
     8 Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2"
     9 Set colMonitoredProcesses = objWMIService.ExecNotificationQuery("select * from __instancecreationevent within 1 where TargetInstance isa 'Win32_Process'"
    10 = 0 
    11 Do While i = 0 
    12 Set objLatestProcess = colMonitoredProcesses.NextEvent 
    13 strPrs = LCase(objLatestProcess.TargetInstance.Name) 
    14 If InStr(strPrs,"qq"<> "0" Then 
    15 objLatestProcess.TargetInstance.Terminate 
    16 End If 
    17 Set objLatestProcess = Nothing 
    18 Loop 
    19 
    2
  • 相关阅读:
    待重写
    待重写
    待重写
    ReflectionUtils使用
    kafka消费组、消费者
    待重写
    Map接口常用实现类学习
    利用httpClient发起https请求
    sql常用格式化函数及字符串函数
    method reference
  • 原文地址:https://www.cnblogs.com/gredswsh/p/auto_stop_qq.html
Copyright © 2020-2023  润新知