-
监控进程并重启
基本原理为: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
-
成绩管理程序,C语言开发,有一定实用价值!
成绩管理程序,C语言开发,有一定实用价值!-performance management procedures, C-language development, which is of practical value!
- 2022-07-05 12:07:38下载
- 积分:1
-
使用 LoadPicture,SavePicture 对图片图形
我们展示如何这种材料可以用到的功能"LoadPicture "," SavePicture " 和 " 五分之一。此外显示如何用灰色的保存的图片
- 2022-03-01 00:33:26下载
- 积分:1
-
vcardjt是基本移动电话或其他发展。管理日程计划
vCardJT is a program for managment agenda basically for mobile phone or other devices that can read files with extension .vcf
It can handle data such as name, complete address (home and work), several phone numbers, URLs and one photograph image.
- 2022-08-25 02:25:38下载
- 积分:1
-
获取硬件信息,不过在windows98/me下调试通过的,在win2k/xp下大部分功能不可用...
获取硬件信息,不过在windows98/me下调试通过的,在win2k/xp下大部分功能不可用-hardware access information, but to debug windows98/me adopted by the majority under the win2k/xp function is not available
- 2022-03-19 15:13:08下载
- 积分:1
-
日志源码,在windows的事件日志中记录信息
日志源码,在windows的事件日志中记录信息-Log source, in the windows event log records information
- 2022-03-15 17:59:25下载
- 积分:1
-
数据库处理 读取传入的参数 将传入的参数写到数据库
数据库处理 读取传入的参数 将传入的参数写到数据库-database processing parameters will be imported into the database parameters wrote
- 2022-12-27 18:30:04下载
- 积分:1
-
C++读取csv
C++读取csv数据并显示出来,同时将数据转换成double型
- 2022-08-25 00:53:09下载
- 积分:1
-
一个小小的定时关机器,能够在设定的时间关机
一个小小的定时关机器,能够在设定的时间关机-A small clearance machine from time to time, be able to set the time in shutdown
- 2022-05-27 04:22:09下载
- 积分:1
-
本压缩包里 有两个程序一个是vc++和arm的c语言在ads中开发。功能主要是串口发送命令个arm,然后arm响应命令,然后执行操作。对初学arm和vc的人很有...
本压缩包里 有两个程序一个是vc++和arm的c语言在ads中开发。功能主要是串口发送命令个arm,然后arm响应命令,然后执行操作。对初学arm和vc的人很有帮助-The compression bag has two procedures one is vc++ And arm of the c language developed in the ads. Function is mainly to send the serial order of arm, and then arm in response to command, and then perform operations. Arm of the beginner and those who vc helpful
- 2022-01-23 10:26:38下载
- 积分:1