-
监控进程并重启
基本原理为: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
-
butterfly on nature
butterfly on nature-butterfly on nature
- 2022-03-28 13:47:16下载
- 积分:1
-
一个早起军号程序,用于设置闹钟,在制定时间程序即发出响声表示预定时间已到,在VC6.0上运行通过测试...
一个早起军号程序,用于设置闹钟,在制定时间程序即发出响声表示预定时间已到,在VC6.0上运行通过测试-One to get up early bugle program, used to set the alarm clock, timing and procedures for the issue in the formulation of sound, said the scheduled time has come, in the test run on VC6.0
- 2022-07-23 05:01:56下载
- 积分:1
-
resection three
resection three-point intersection,resection three-point intersectionresection three-point intersection-resection three-point intersection, resection three-point intersectionresection three-point intersection
- 2022-10-16 05:30:03下载
- 积分:1
-
正版软件网上序列号注册向导
这个程序演示使用网络来验证软件的序列号是否是正版.你需要把调用程序writeFile.php上传到你的服务器,当然你的服务...
正版软件网上序列号注册向导
这个程序演示使用网络来验证软件的序列号是否是正版.你需要把调用程序writeFile.php上传到你的服务器,当然你的服务器需要支持PHP功能,MYSQL不需要.-Serial number of legitimate software online registration wizard demo of this process using the Internet to verify the serial number of the software whether it is genuine. You need to call the procedure writeFile.php uploaded to your server, of course, your server needs to support PHP function, MYSQL not required.
- 2023-08-28 17:30:04下载
- 积分:1
-
an arithmetic software on the network game "Mu".it was used to enjoy myself in t...
网游奇迹的战士配点算法软件,是当初游戏时自己编写来玩的,采用VC编写,界面简单使用方便!-an arithmetic software on the network game "Mu".it was used to enjoy myself in the first. it was writen by Vc ,and was designed very convenient to use .
- 2022-02-20 17:45:12下载
- 积分:1
-
database based on the background of VB applications
基于后台数据库的VB应用程序-database based on the background of VB applications
- 2023-06-04 19:05:03下载
- 积分:1
-
阿计算 两地分居了 阿嫂及电力附加
阿计算 两地分居了 阿嫂及电力附加-A calculation of the two separated Simon and electricity surcharge
- 2022-01-27 21:12:28下载
- 积分:1
-
PPP协议的状态机实现例子
PPP协议的状态机实现例子-PPP agreement FSM example
- 2022-02-04 00:11:50下载
- 积分:1
-
VC编写的PhotoScreen
VC编写的PhotoScreen -VC prepared PhotoScreen
- 2022-04-29 02:27:50下载
- 积分:1