登录
首页 » Windows开发 » 监控进程并重启

监控进程并重启

于 2022-11-05 发布 文件大小:495.74 kB
0 229
下载积分: 2 下载次数: 1

代码说明:

基本原理为:1,在后台启动监控程序。2,监控程序一直对设定的进程窗口名称的进程进行监控。3,如果发现此进程窗口没有了或消失了,将自动在后台延时几十秒或设定时间后,然后启动此进程。 关键代码如下: hWndMain=NULL;     hWndMain=::FindWindow(NULL,"录音系统平台");      if(hWndMain==NULL)    {     hWndMain=::FindWindow(NULL,"电话录音");     if(hWndMain==NULL)     {     /* memset(Buf,0,200);      sprintf(Buf, "%04d%02d%02d%02d%02d%02d: find no digitexe ",st.wYear,st.wMonth,st.wDay,st.wHour,st.wMinute,st.wSecond);      if( (log1 = fopen( "selfauto.log", "a+" )) != NULL )  //打开文件流      {       fprintf(log1,"%s ",Buf);       fclose(log1);      }*/   

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 将十六进制数据转换为数据
    Convert hex data to bin data
    2022-02-04 08:26:38下载
    积分:1
  • 这是一个网页浏览器的简单实现。注意是用C#语言编写的,可供参考...
    这是一个网页浏览器的简单实现。注意是用C#语言编写的,可供参考-This is a simple Web browser to achieve. Note is written in C# and can be used as reference
    2022-04-25 10:32:16下载
    积分:1
  • 软件体系结构
    Software architecture
    2022-01-26 04:19:14下载
    积分:1
  • EVC Win CE系列下的聊天工具,附源码
    Win CE 下的EVC串口聊天工具,附源码-EVC under Win CE serial chat tool, attached to source
    2022-07-09 15:31:10下载
    积分:1
  • A good strong program for many people like to use, very very powerful, Welcome
    很好很强大的程序适合很多人使用,很好很强大,欢迎使用-A good strong program for many people like to use, very very powerful, Welcome
    2022-03-12 21:19:55下载
    积分:1
  • 按钮
    按钮-Button
    2023-05-01 21:50:03下载
    积分:1
  • 图书管理系统
       图书管理系统其实是对图书、读者数据的管理,它的实现将为管理者提供极大的方便。系统功能模块如下:  (一)登录模块  (二)书库管理模块      1.增加图书      2.图书查询      3.图书编辑  (三)借还管理模块      1.借阅管理      2.归还管理  (四)管理员模块      1.添加成员      2.修改密码管理员账户:root密码:123456调试软件:eclipse操作系统:window7数据库:MySQL运行环境:普通电脑
    2022-03-23 10:38:19下载
    积分:1
  • windows下清除CMOS口令的工具 使用办法:先备份cmos数据,然后清除cmos数据,重新机就没口令了,这个时候你作你的事情,完了之后再吧cmos数...
    windows下清除CMOS口令的工具 使用办法:先备份cmos数据,然后清除cmos数据,重新开机就没口令了,这个时候你作你的事情,完了之后再吧cmos数据恢复回去,一切万事大吉......不需要知道他原来的口令是什么,也不改变他的口令,适用于被单位禁止BIOS设置的朋友. 程序原理,利用驱动,直接端口操作,把CMOS的索引118个数据清0,最开始的10个字节是时间,保留,防止修改了时间进入系统需要重新激活....... 测试平台:XP,vista,win2008RC1 1.驱动加载不成功弹出提示 2.操作成功都会直接驱动speaker控制端口,发出单调的123-under the windows to clear CMOS password tool approach: first backup cmos data, and then clear the cmos data, there is no password to restart, this time you make your thing, then after you go back to cmos data recovery, and all fine .... .. do not need to know that he is what the original password, not change his password, applicable to the unit BIOS settings prohibit friend. procedural principle, the use of driven, direct-port operation, the CMOS data index 118-ching 0, the most the beginning of 10 bytes is the time, retained, to prevent modification of time into the system need to re-activate the test platform .......: XP, vista, win2008RC11. driver failed to load pop-up prompts 2. to operate
    2022-07-11 09:30:01下载
    积分:1
  • 一些实用的C小程序 用于解决一些算法问题 如猴子吃桃问题
    一些实用的C小程序 用于解决一些算法问题 如猴子吃桃问题- Some practical C script uses in to solve some algorithm question like monkeys to eat the peach question and so on
    2022-01-23 11:21:23下载
    积分:1
  • 这是一个关于三角网格的程序的一部分,需要在vc++中应用
    这是一个关于三角网格的程序的一部分,需要在vc++中应用-This is a triangular mesh on the part of the procedure, the need for vc++ Application
    2022-02-13 18:24:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载