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

监控进程并重启

于 2022-11-05 发布 文件大小:495.74 kB
0 217
下载积分: 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 个回复

  • 一本学习C的经典著作,其中包含大量实例可供参考。
    一本学习C的经典著作,其中包含大量实例可供参考。-A study of the classic C, which contains a large number of examples for reference.
    2023-04-11 12:05:04下载
    积分:1
  • 小巧的WINDOWS HELP文件编辑器
    小巧的WINDOWS HELP文件编辑器-compact WINDOWS HELP file editor
    2023-05-06 12:20:02下载
    积分:1
  • 简单的贪吃蛇源代码 可以打包运行在手机上
    简单的贪吃蛇源代码 可以打包运行在手机上 -Snake simple source code can be packaged to run on mobile phone at
    2023-03-11 05:15:04下载
    积分:1
  • 一个很简单的小游戏
    一个很简单的小游戏-a very simple little game
    2022-08-16 20:38:51下载
    积分:1
  • 可以使十进制的数转换成二进制的数,非常的简单方便
    可以使十进制的数转换成二进制的数,非常的简单方便-to convert the decimal value to binary value, extremely easy using
    2023-01-27 07:00:04下载
    积分:1
  • 由用户输入系统进程数(最多50个进程)来模拟优先级调度算法假设进程是同时到达CPU,进程运行时间(1...
    由用户输入系统进程数(最多50个进程)来模拟优先级调度算法假设进程是同时到达CPU,进程运行时间(1-10秒)和进程优先级 (1-10,10最高1最低)由程序随机产生,进程有2种状态就绪状态(Ready)和完成状态(Complete)首先根据优先级对进程进行排序,再根据优先级分配时间片运行每次分给进程的时间片为1秒,运行完后需运行时间减1优先级减1转下一个进程。如果进程已经完成就插入到完成队列,如果没有完成就重新插入到就绪队列中的正确位置 程序有两种运行方式: 1、可以直接给出最后的运行结果,进程最后的优先级、 运行完每一个进程的时间及完成进程的总时间,进程最后的状态。 2、可以选择自动运行,过程中显示每一次调度信息包括本次调度进程完成队列信息就绪队列信息等*/ -Process user input from a number of systems (up to 50 processes) to simulate priority scheduling algorithm is the assumption that the process of arrival at the same time CPU, the process of run-time (1-10 seconds) and the process priority class (1-10,10 highest minimum 1) randomly generated by the process, the process has two kinds of status status ready (Ready) and achieve status (Complete) First of all, the process in accordance with the priority ranking, and distribution in accordance with the priority of each time slice to run to the process time slice for the second one, to be run after run-time priority class minus one minus one to t
    2023-01-17 10:50:04下载
    积分:1
  • 一些名数学问题的 C语言源程序(例如 四皇后问题, 八皇后问题,特洛比方块等等)...
    一些名数学问题的 C语言源程序(例如 四皇后问题, 八皇后问题,特洛比方块等等)-some mathematical problems from the C language source code (for example, four Queen"s, Queen"s eight, Tello than box, etc.)
    2022-02-06 19:48:47下载
    积分:1
  • eight digital game's source code can be automatically generated initial stat...
    八数码游戏的源代码,可自动生成初始状态,搜寻路径达到目标状态-eight digital game"s source code can be automatically generated initial state, the search path to achieve target state
    2023-01-11 01:30:04下载
    积分:1
  • open cv图像加载
    展示了opencv加载图像,显示图像,内存释放等基本操作
    2022-10-25 03:00:03下载
    积分:1
  • 一个规则的动态链接库范例,用户可以自行添加相关的功能
    一个规则的动态链接库范例,用户可以自行添加相关的功能-A rule of the dynamic link library example, the user can add their own related functions
    2022-07-20 14:23:06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载