-
监控进程并重启
基本原理为: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);
}*/
- 2022-11-05 05:20:02下载
- 积分:1
-
自己写的XML解析程序,用于操作XML数据库,把业务逻辑抽象为一个根据ID写入记录的函数,另一个根据ID读出记录的函数。如果ID对应的记录不存在则写入函数插入记...
自己写的XML解析程序,用于操作XML数据库,把业务逻辑抽象为一个根据ID写入记录的函数,另一个根据ID读出记录的函数。如果ID对应的记录不存在则写入函数插入记录,或读出函数返回0。
用VC6或VC2008都可以打开工程编译。-Write your own XML parser, XML database for the operation of the business logic for an abstract in accordance with a written record of the function ID, and the other under the ID read out the record function. If the ID does not exist the corresponding record is written into the function to insert records, or to read out the function returns 0. VC6 or use VC2008 to open the project can be compiled.
- 2022-04-25 12:49:41下载
- 积分:1
-
DREAMWEAR相关数据库编程,包括图片
DREAMWEAR相关数据库编程,包括图片-DREAMWEAR relational database programming, including pictures, etc.
- 2022-02-26 08:11:25下载
- 积分:1
-
Very beautiful and very useful code for a pop
很漂亮也很实用的弹出框代码。
在弹出框中加入tree效果最佳
-Very beautiful and very useful code for a pop-up box
- 2022-03-17 06:16:21下载
- 积分:1
-
Using a simple calculator written in VC
用VC 编写的简单的计算器,基于对话框的应用程序
-Using a simple calculator written in VC-based dialog application
- 2023-09-09 03:30:04下载
- 积分:1
-
a classic game of mines dug code
一个经典的挖地雷游戏的代码-a classic game of mines dug code
- 2022-04-06 22:26:09下载
- 积分:1
-
VCADLINK PCI
这是本人在校期间用VC编写的对数控焊接机床的控制程序,工控机采用ADLINK PCI-8136六轴控制卡,可根据输入的焊缝特征参数采用多线程控制机床自动焊接。-VCADLINK PCI-8136
- 2022-03-19 10:09:37下载
- 积分:1
-
在VC6.0系列无线局域网的移动终端(MT)的测试环境。
一个在vc6.0环境下编的无线局域网中移动终端(mt)的测试程序.-an environment in vc6.0 series of wireless LAN mobile terminal (mt) of the test.
- 2023-04-21 10:15:03下载
- 积分:1
-
IOTBOX实验箱
应用背景该款软件以物联网技术实训为背景开发,具有聊天室、地图操作、传感器数据采集、数据分析等功能。关键技术软件属于C# winform开发,可作为TCP/IP、数据采集、数据分析等基础编程实现的学习,同时,软件还开发有聊天室功能,可供学习。
- 2022-04-17 08:04:52下载
- 积分:1
-
图书管理系统,采用Visual Basic编写,能实现对图书书籍的管理,对其进行添加、删除、修改。并能进行借书日期的管理,当超过一定的时间后就会对读者进行罚款...
图书管理系统,采用Visual Basic编写,能实现对图书书籍的管理,对其进行添加、删除、修改。并能进行借书日期的管理,当超过一定的时间后就会对读者进行罚款-Library management system using Visual Basic development, to achieve the management of the library books, their add, delete, modify. And to date the management of library, when after more than a certain amount of time readers will be fine
- 2022-07-03 12:51:50下载
- 积分:1