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

监控进程并重启

于 2022-11-05 发布 文件大小:495.74 kB
0 227
下载积分: 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++节目展示如何ATM( 自动取款机
    2022-02-01 06:38:05下载
    积分:1
  • 用户输入十个数据,能够计算他们的平均值,方差,均方根
    用户输入十个数据,能够计算他们的平均值,方差,均方根-10 user input data, to calculate their average, variance, root-mean-square
    2022-01-25 15:44:20下载
    积分:1
  • 本程序允许用户导入一个指定的xml文档 然后通过一个文本框,查找xml...
    本程序允许用户导入一个指定的xml文档 然后通过一个文本框,查找xml-This demo allows the user to load and parse a specified XML document. Then, through a text box the user can navigate and manipulate the tree. This is both a useful example of how to walk the XML tree using the XML Object Model and a useful tool for learning the XML Object Model.
    2022-01-28 07:55:05下载
    积分:1
  • 24位BMP图象的读入与显示 请编程爱好者评价
    24位BMP图象的读入与显示 请编程爱好者评价-24-bit BMP images, please read and display programming enthusiasts evaluation
    2022-03-17 16:56:25下载
    积分:1
  • 多线程编程演示。在该该程序中演示了多线程的问题!有助于理解线程的启和同步线程的机制...
    多线程编程演示。在该该程序中演示了多线程的问题!有助于理解线程的开启和同步线程的机制-multithreaded programming demo. The demonstration of the process of multi-thread! Thread help understanding the opening threads and synchronization mechanisms
    2022-12-15 16:50:03下载
    积分:1
  • 攀登网
    水管工源码,包括图形以及AI部分源代码,供初学者使用!-Scrambled Net
    2022-03-23 09:27:46下载
    积分:1
  • 一个图书馆管理系统,用数据库
    一个图书管理系统,用ACCESS数据库进行开发-A library management system, developed using ACCESS database
    2022-04-18 03:26:50下载
    积分:1
  • 对话框跟随移动
    对话框跟随移动,能够跟随鼠标移动的对话框,能够记录鼠标移动坐标,希望能有一定的用处
    2022-03-14 18:04:00下载
    积分:1
  • Bank card password calibration technology, the international community some info...
    银行卡密码校验技术,国际上一些密码技术的资料,对开发加密验证比较有帮助-Bank card password calibration technology, the international community some information on cryptography, encryption on the development of more help to verify
    2022-07-17 11:44:14下载
    积分:1
  • Any cs. student a ny average university will at some point be faced with design...
    Any cs. student a ny average university will at some point be faced with design patterns (dp for the rest of the article). Dp s are generic principles or best practices from software development. This article is not an introduction to dp s, since others have already covered that in longer and better written articles. Instead, this article deals with implementing and re-using C++ templates when thinking dp s. -Any cs. Student a ny average university will at some point be faced with design patterns (dp for the rest of the article). Dp s are generic principles or best practices from software development. This article is not an introduction to dp s, since others have already covered that in longer and better written articles. Instead, this article deals with implementing and re-using C++ templates when thinking dp s.
    2022-06-16 19:07:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载