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

监控进程并重启

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

  • 非常难找的[内存编译/查看]源码,且非常实用,可为检测项目的内存运行状态。...
    非常难找的[内存编译/查看]源码,且非常实用,可为检测项目的内存运行状态。-MemEdit
    2022-02-16 03:42:59下载
    积分:1
  • Excel格式的C + +出口
    c++导出EXCEl格式文件-c++ Export EXCEl format
    2023-05-27 17:00:03下载
    积分:1
  • functional 3D Pipeline
    三维流水线的功能-functional 3D Pipeline
    2022-10-30 17:15:03下载
    积分:1
  • 通讯录管理
    通讯录管理 -directory management directory management
    2023-06-26 13:00:04下载
    积分:1
  • that a company has a customer reception center, the unit time to a random custom...
    说某公司有一个顾客接待站,在单位时间内随机地有顾客到接待站询问,设每位顾客 的接待时间是某个范围内的随机值,设接待站只有一名接待人员,要求程序模拟统计 //在设定时间内,接待员的总空闲时间和顾客的平均等待时间。假定模拟数据已按顾客 //到达接待站的先后顺序依次存于某个正文数据文件中。对应每位顾客有两个数据,到达 ///时间和需要接待的时间。 //在计算机模拟程序中,程序按模拟环境中的事件出现顺序逐一处理事件。当一个事件 //结束时,下一个事件隔一段时间才发生,则程序中的模拟时钟立即推进到下一个事件 的发生时间,如一个事件还未处理结束之前,另有其他事件等待处理,则这些事件就 应依次排队等候处理。-that a company has a customer reception center, the unit time to a random customers to ask reception centers set up for each customer reception time is within the scope of a random value, is only a reception center set up to receive, process simulation requirements statistics// within a set time, the receptionist at the total idle between customers and the average waiting time. Simulated data has been assumed by the customer// Reception Center arrived in the order followed by the text stored in a data file. Corresponding two per customer data, arriving///time and the time required to receive.// In the computer simulation program, the process by simulation environment incidents each sequence
    2022-01-30 22:04:42下载
    积分:1
  • PC端通过WINCE端实现摄像功能,不错的源程序
    PC端通过WINCE端实现摄像功能,不错的源程序-PC client through the client realize WINCE camera features, a good source
    2022-05-10 23:22:42下载
    积分:1
  • 我包括用户预约呼出以及系统主动呼出,其中预约回呼根据用户预定的时间段呼出,并将其转到对应的设备上为其服务,而系统主动呼出则利用直接录入的记录或者用户给出的待呼出...
    我包括用户预约呼出以及系统主动呼出,其中预约回呼根据用户预定的时间段呼出,并将其转到对应的设备上为其服务,而系统主动呼出则利用直接录入的记录或者用户给出的待呼出表进行呼出-including users and booking system exhaled breath initiative, which calls booking to users of the scheduled time exhaled and transferred in the corresponding equipment for its services, and systems will take the initiative to raise the use of direct recording records or user is the question of exhaled breath Table
    2022-07-04 04:14:31下载
    积分:1
  • 本代码简单易用。可以进行在此基础上进一步的自己的代码、...
    本代码简单易用。可以进行在此基础上进一步的开发自己的代码、-This easy-to-use code. Can be conducted on this basis to further develop their own code,
    2022-10-20 09:50:03下载
    积分:1
  • 机器人
    蛇形机器人结构、运动及控制的研究 蛇形机器人结构、运动及控制的研究-robot
    2023-02-06 20:00:04下载
    积分:1
  • blowchart
    流程图
    2022-02-21 18:05:14下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载