-
监控进程并重启
基本原理为: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
-
该程序实现对一维数据轴上的最临近点的求解问题 采用方法:分治方法1(该方法在递归时由于使用数组的值,使得递归进栈的数据很多,消耗系统空间很大,所以处理的个数经测...
该程序实现对一维数据轴上的最临近点的求解问题 采用方法:分治方法1(该方法在递归时由于使用数组的值,使得递归进栈的数据很多,消耗系统空间很大,所以处理的个数经测试不超过70个,可见在设计程序时,考虑空间的使用也是很必要的!)-the process of achieving a dimensional data axis near the point of the methodology used to solve the problem : a partition method (the method when the use of recursive array, which makes the recursive stack into many of the data, consume much space, the number of tested not more than 70, based in Visibility terms procedures, the use of space is also necessary!)
- 2023-08-13 21:00:03下载
- 积分:1
-
英文主源代码,附录的源代码
《英文版掌握Vc++》附录中的源代码-"English master Vc" appendix of source code
- 2022-08-10 00:14:19下载
- 积分:1
-
跳棋游戏VC源程序,有兴趣的朋友请多多指教,
跳棋游戏VC源程序,有兴趣的朋友请多多指教,-Jumping Chess VC Game Source Code. If you are interesting, please give me some suggestions, thanks!
- 2022-08-25 10:55:40下载
- 积分:1
-
自动取款机 c + +
一个简单的C++节目展示如何ATM( 自动取款机
- 2022-02-01 06:38:05下载
- 积分:1
-
a simply programme of caculator,it is able to do add sub mutiply dive operator
a simply programme of caculator,it is able to do add sub mutiply dive operator-simply a program of caculator. it is able to do add sub mutiply dive operator
- 2022-02-04 19:27:07下载
- 积分:1
-
如何让应用程序托盘显示在任务栏,vc6测试通过
如何让应用程序托盘显示在任务栏,vc6测试通过-How to make the application appear in the taskbar tray, vc6 test
- 2022-01-28 11:21:11下载
- 积分:1
-
数据结构(C语言)――哈夫曼编码及其应用
数据结构(C语言)――哈夫曼编码及其应用-Huffman Coding and Its Application
- 2022-09-22 07:55:02下载
- 积分:1
-
自动重复点击。记录你的谅解备忘录第一次使用点击,保存文件…
Automates redundant clicking. Record your mous clicks on first use, save the file, then play it any time in the future.
- 2022-11-15 05:55:03下载
- 积分:1
-
VB6源码形式的皮肤,皮肤VB6窗体源代码,大家共享
VB6皮肤源代码窗体,VB6皮肤源代码窗体,大家共享
- 2022-07-01 13:19:20下载
- 积分:1